export declare type ModuleType = 'prod' | 'dev' | 'optional'; export declare class ModuleWalker { buildPath: string; modulesToRebuild: string[]; onlyModules: string[] | null; prodDeps: Set; projectRootPath?: string; realModulePaths: Set; realNodeModulesPaths: Set; types: ModuleType[]; constructor(buildPath: string, projectRootPath: string | undefined, types: ModuleType[], prodDeps: Set, onlyModules: string[] | null); get nodeModulesPaths(): Promise; walkModules(): Promise; findModule(moduleName: string, fromDir: string, foundFn: ((p: string) => Promise)): Promise; markChildrenAsProdDeps(modulePath: string): Promise; findAllModulesIn(nodeModulesPath: string, prefix?: string): Promise; }