import type es from 'estree'; import type { Context } from '../../types'; import type { RecursivePartial } from '../../utils/typeUtils'; import type { FileGetter, ModuleInfo } from '../moduleTypes'; import { type ImportResolutionOptions } from './resolver'; export type LinkerResult = { ok: false; verboseErrors: boolean; } | { ok: true; programs: Record; files: Record; sourceModulesToImport: Record; topoOrder: string[]; verboseErrors: boolean; }; export type LinkerOptions = { resolverOptions: ImportResolutionOptions; }; export declare const defaultLinkerOptions: LinkerOptions; /** * Starting from the entrypoint file, parse all imported local modules and create * a dependency graph. * * @param fileGetter A function that, when given a file path, either returns the contents * of that file as a string, or if it doesn't exist, `undefined` */ export default function parseProgramsAndConstructImportGraph(fileGetter: FileGetter, entrypointFilePath: string, context: Context, options: RecursivePartial | undefined, shouldAddFileName: boolean): Promise;