/** * Atomic JSON store for `/update-state.json`. * * Mirrors `NatStore`: load on demand, write to * `.tmp` then rename. Single-writer assumption — only one cadre-host * process owns a given dataDir. */ import { type UpdateState } from './types.js'; export declare class UpdateStateStore { private readonly path; private cache; constructor(rootDir: string); filePath(): string; /** Load (with caching). A missing file returns an empty state. */ load(): UpdateState; /** Persist a new state atomically. */ save(state: UpdateState): void; /** Merge a patch into the current state and persist. */ update(patch: Partial>): UpdateState; /** Drop a specific field from the persisted state. */ clearField>(field: K): UpdateState; }