import fs from 'node:fs'; export declare function removeEmptyDirs(dir: string): void; /** * Copies a cached file to `destination`, giving the copy the source file's * access and modification times so restored output reflects when it was cached. */ export declare function copyCachedFile(source: fs.PathLike, destination: fs.PathLike): Promise; /** * Restores timestamps only for unchanged public files. Build plugins may have * overwritten the copied files, so matching paths (or sizes) alone are not enough. * Source symlinks are followed, like Vite's public copy; destination symlinks are * never followed, to avoid changing files outside the output directory. */ export declare function copyTimestamps(srcDir: URL, destDir: URL): Promise; export declare function emptyDir(_dir: URL, skip?: Set): void;