import type { TypeScriptModuleImport, TypeScriptModulesReport } from 'no-mistakes'; export type SourceModuleGraphOptions = { root: string; extensions: readonly string[]; aliases?: Readonly>; files: readonly string[]; facts: TypeScriptModulesReport; /** Caps the supplied file inventory and every traversal. */ maxFiles?: number; }; export type SourceExportOwner = { file: string; exportName: string; }; export type SourceModuleGraph = { resolveSource(fromFile: string, specifier: string): string | null; runtimeImports(file: string): TypeScriptModuleImport[]; reachableFrom(entrypoints: readonly string[], options?: { runtimeOnly?: boolean; }): string[]; resolveExportOwner(file: string, exportName: string): SourceExportOwner | null; }; /** Resolve only caller-supplied files; syntax and binding facts come from no-mistakes. */ export declare function createSourceModuleGraph(options: SourceModuleGraphOptions): SourceModuleGraph;