import type { ReadOnlyGraph } from "metro"; import type { BasicSourceMap, IndexMap, MixedSourceMap } from "metro-source-map"; import * as nodefs from "node:fs"; type ModuleInfo = { name: string; version: string; absolutePath: string; }; export type ModuleMap = Record>>; export declare function normalizePath(p: string): string; export declare function resolveModule(source: string, /** @internal */ fs?: typeof nodefs): ModuleInfo; export declare function gatherModulesFromSections(sections: IndexMap["sections"], moduleMap: ModuleMap): ModuleMap; export declare function gatherModulesFromSources(sources: BasicSourceMap["sources"], moduleMap: ModuleMap, /** @internal */ fs?: typeof nodefs): ModuleMap; export declare function gatherModulesFromGraph(graph: ReadOnlyGraph, moduleMap: ModuleMap, /** @internal */ fs?: typeof nodefs): ModuleMap; export declare function gatherModulesFromSourceMap(sourceMap: MixedSourceMap, moduleMap: ModuleMap, /** @internal */ fs?: typeof nodefs): ModuleMap; export {}; //# sourceMappingURL=gatherModules.d.ts.map