/** Bundler module id → source path (e.g. `[project]/src/app/leaky/page.tsx`). */ export type ModuleRegistry = ReadonlyMap; export declare function extractChunkModules(code: string, rawMap: unknown): Map; /** * Builds the module registry by scanning every server chunk that has an * adjacent sourcemap. Missing maps, unparseable chunks, or non-Turbopack * builds simply contribute nothing: an empty registry means every finding * degrades to `unattributed`. */ export declare function extractModuleRegistry(nextServerDir: string): Promise;