/** * Atomic JSON file replacement. Callers persist state that another process * may read at any moment, so a partially written file must never be observable. */ /** * Writes `value` as pretty JSON to `filePath`, creating parent directories. * * The write lands in a sibling temp file and is then renamed, which is atomic * on POSIX, so a concurrent reader sees either the old file or the new one and * never a half-written document. The pid in the temp name keeps two processes * writing the same target from clobbering each other's temp file. Mode 0600 * matches the rest of groundcrew's state, which can carry task titles. */ export declare function writeJsonAtomic(filePath: string, value: unknown): void; //# sourceMappingURL=atomicJson.d.ts.map