/**
 * Durable single-file writes: temp file → fsync → rename to target.
 * Avoids torn JSON when the process dies mid-write.
 */
/**
 * Write UTF-8 text atomically. Creates parent directories when missing.
 */
export declare function writeTextAtomic(filePath: string, content: string, options?: {
    mode?: number;
    ensureDirMode?: number;
}): Promise<void>;
/**
 * Synchronous atomic UTF-8 write (temp → fsync → rename). For CLI / sync stores.
 */
export declare function writeTextAtomicSync(filePath: string, content: string, options?: {
    mode?: number;
    ensureDirMode?: number;
}): void;
