/**
 * Atomically write a JSON file to dir. Returns the filename (not full path).
 */
export declare function writeIpcFile(dir: string, data: object): string;
/**
 * Read and parse a JSON file. Returns null if the file does not exist.
 */
export declare function readJsonFile<T>(filePath: string): T | null;
/**
 * Delete a result file to prevent reading stale data before a new request.
 */
export declare function clearStaleResult(filePath: string): void;
/**
 * Poll a JSON file until the predicate returns true or timeout is reached.
 * Returns the parsed data or throws on timeout.
 */
export declare function pollJsonFile(filePath: string, predicate: (data: unknown) => boolean, timeoutMs: number, intervalMs?: number): Promise<unknown>;
//# sourceMappingURL=ipc.d.ts.map