/** * Build a collision-free sibling temp path for `target`. * * The temp name is unique per write (`target....tmp`), so * concurrent writers to the same target never share one temp file. Sharing a * single `target.tmp` allowed an in-flight async write to race a later write's * `unlink` + `rename` sequence, letting a stale write land last (or throw * ENOENT on rename). */ export declare function uniqueTmpPath(target: string): string; /** * Atomically replace `target` with `content`: write a unique sibling `.tmp` * file, unlink the existing target, then rename the tmp into place. Parent * directories are created as needed. Rename is atomic on POSIX, so readers * never observe a partially written file. */ export declare function atomicWriteSync(target: string, content: string): void; /** Async variant of {@link atomicWriteSync}. */ export declare function atomicWrite(target: string, content: string): Promise; //# sourceMappingURL=fs-util.d.ts.map