/**
 * File system utilities.
 *
 * @module
 */
import type { FsWriteDeps } from './deps.js';
/**
 * Write a file atomically via temp file + rename.
 *
 * Writes to `<path>.tmp` then renames over `path` so readers either see the
 * old contents or the full new contents — never a partial write.
 *
 * @mutates filesystem - creates `<path>.tmp` then renames it to `path`
 * @throws Error if `write_text_file` or `rename` rejects (permissions, disk full, cross-device rename, etc.)
 */
export declare const write_file_atomic: (deps: Pick<FsWriteDeps, "write_text_file" | "rename">, path: string, content: string) => Promise<void>;
//# sourceMappingURL=fs.d.ts.map