import type nodeFs from "node:fs/promises"; export declare function writeOutput(args: { directory: string; output: Record; cleanDirectory?: boolean; fs: typeof nodeFs; previousOutputHashes?: Record; }): Promise>; /** * Walk an existing output directory and produce the same hash map that * {@link writeOutput} would have returned on a previous compile. * * Used by the bundler plugins to seed `previousCompilation` on a fresh * process so the first compile's diff against unchanged inputs is empty * and `writeOutput` short-circuits — letting us avoid wiping the directory * out from under concurrent SSR/prerender readers (#659). * * Returns `undefined` if the directory does not exist. Keys are * forward-slash relative paths to match {@link hashOutput}. */ export declare function hashDirectory(directory: string, fs: typeof nodeFs): Promise | undefined>; //# sourceMappingURL=write-output.d.ts.map