/** The filesystem calls an atomic write needs. */ export interface AtomicWriteIo { writeFile(path: string, data: string): Promise; rename(from: string, to: string): Promise; unlink(path: string): Promise; } /** * Write `data` to `path` via a temporary sibling and a POSIX rename, so a * crash mid-write never leaves a partially-written file at `path`. The * temporary file is removed when the rename fails. */ export declare function writeFileAtomicWith(io: AtomicWriteIo, path: string, data: string): Promise; //# sourceMappingURL=atomic-write.d.ts.map