export interface JsonStoreOptions { empty: () => T; parse: (value: unknown) => T; path: () => string; /** * The write root the paths of this store belong to. * * Must come from the same authority as `path()`. A store told its home * explicitly - `new AgentHealthStore({ animaHome })` - derives `path()` from * that home, so its write root is that home, not whatever `resolveAnimaHome()` * reports at write time. Take the two from different authorities and the guard * protects a root the target does not live under: the target then reads as * "outside the root" and is recursively recreated, which is the whole defect. * * Defaults to the ambient root, captured once per path in `file()`. */ writeRoot?: () => string; } export declare class JsonStore { private readonly options; private readonly validated; private readonly files; constructor(options: JsonStoreOptions); read(): Promise; write(value: T): Promise; update(op: (current: T) => T | Promise): Promise; private file; private parse; } //# sourceMappingURL=json-store.d.ts.map