export interface AtomicWriteOptions { /** * File permission mode for the written file. Defaults to 0o600 (owner read/write only). */ readonly mode?: number; /** * When true, creates parent directories if they do not exist. Defaults to false. */ readonly mkdirp?: boolean; } /** * Writes `data` to `path` atomically: writes to a sibling temp file, fsyncs * it, then renames it into place. On POSIX, rename(2) is atomic so readers * always see either the old file or the new file, never a partial write. * * If the write or fsync fails, the temp file is cleaned up before rethrowing. * * @param path Destination file path. * @param data UTF-8 string content, or raw bytes, to write. A `Uint8Array` * is written as-is; a string is written with `writeFileSync`'s * default UTF-8 encoding, exactly as before this accepted bytes. * @param opts Optional mode and mkdirp flags. */ export declare function atomicWriteFileSync(path: string, data: string | Uint8Array, opts?: AtomicWriteOptions): void; //# sourceMappingURL=atomic-write.d.ts.map