/** Test-only: force splitting at a small size so a fixture exercises it. Returns the previous. */ export declare function _setSplitMinArrayItemsForTesting(n: number): number; /** * Produce the same string `JSON.stringify(value, null, 2)` would. * * Only for tests and small values — it defeats the entire purpose on a large one. The streaming * writer is {@link writeJsonAtomicStreaming}. */ export declare function stringifyStreamingForTesting(value: unknown): string; /** * Write `value` as pretty-printed JSON to `path`, atomically, without ever materializing the whole * string; return the SHA-256 hex digest of the bytes written. * * Atomicity matches `atomicWriteFile`: a sibling temp file, fsync'd, then renamed into place, so a * crash leaves the previously committed artifact untouched rather than a truncated one. The digest * is computed over the same bytes as they stream past, so a caller that must stamp another artifact * with it (the traversal index) never needs the string either. */ export declare function writeJsonAtomicStreaming(path: string, value: unknown): Promise; //# sourceMappingURL=json-stream.d.ts.map