import { StorageError } from './types.js';
/**
 * Write file atomically using temp + rename.
 * rename() is atomic on POSIX and NTFS.
 */
export declare function atomicWriteSync(targetPath: string, data: string, mode?: number): void;
/**
 * Safe read that returns StorageError instead of throwing.
 */
export declare function safeReadSync(path: string): string | StorageError;
//# sourceMappingURL=atomic.d.ts.map