import { type PathBuilderLike } from "path-ts"; import { type ExpectedSource, type SourceCompletionRecord } from "#build/source-record"; /** * Where an import reads from and writes to. */ export interface SourceImport { source: string; /** * The earlier build's `--out`. */ priorOutputDir: PathBuilderLike; /** * This build's `--out`. */ outputDir: PathBuilderLike; expected: ExpectedSource; } /** * Import one source from an earlier build, or return why it can't be. * * Before any file is cloned, {@linkcode readReusableSource} checks the earlier record across builds. * It re-hashes every file the record lists. */ export declare function importPriorSource(opts: SourceImport): Promise<{ record: SourceCompletionRecord; problem: null; } | { record: null; problem: string; }>; //# sourceMappingURL=reuse.d.ts.map