export declare function writeJsonSnapshotAtomically(targetPath: string, data: unknown, mode?: number): Promise<void>;
/** Settles every queued snapshot write. Shutdown awaits this so a write a
 *  request left running in the background still lands before exit. It drains
 *  until the queue stays empty, because a producer that outlived the listener
 *  close can queue another write while earlier ones settle; the caller bounds
 *  the whole drain with its own timeout. */
export declare function flushSnapshotWrites(): Promise<void>;
export declare function clearSnapshotWriteLocksForTests(): void;
