/**
 * ⚛️ Atomic File Writer
 * All-or-nothing file operations - Zero slippage design
 *
 * Strategy:
 * 1. Write to .tmp file first
 * 2. Validate the write succeeded
 * 3. Atomic rename (OS-level atomic operation)
 * 4. If ANY step fails, original file is untouched
 *
 * User NEVER sees partial state
 */
/**
 * Atomic file write
 * Implements all-or-nothing operation
 *
 * @param filePath - Target file path
 * @param content - Content to write
 * @param projectPath - Project root (for events)
 */
export declare function atomicWrite(filePath: string, content: string, projectPath?: string): Promise<void>;
/**
 * Safe file read with error handling
 */
export declare function safeRead(filePath: string, projectPath?: string): Promise<string>;
/**
 * Check if file exists
 */
export declare function fileExists(filePath: string): Promise<boolean>;
/**
 * Get file modification time
 */
export declare function getFileModifiedTime(filePath: string): Promise<Date | null>;
//# sourceMappingURL=atomic-write.d.ts.map