/** * Writes data to a JSON file atomically using a temp-file-and-rename strategy. * This prevents file corruption if the process crashes or is killed during writing. * * @param filePath Path to the target file. * @param data Data to be JSON-serialized and written. */ export declare function writeJsonAtomic(filePath: string, data: any): void; /** * Reads data from a JSON file. Returns undefined if the file doesn't exist or is corrupt. */ export declare function readJsonSafe(filePath: string): T | undefined;