import type { StateStore, WatcherState } from "./types.js"; /** * Reads the watcher state from `path`. If the file does not exist, returns a * fresh empty state. The state file is plain JSON — the agent can read it * directly to inspect what has been seen across runs. */ export declare function readState(path: string): WatcherState; export declare function writeState(path: string, state: WatcherState): void; /** * Filesystem-backed StateStore for Node consumers. Wraps the sync * readState/writeState above. Use in CLI and Node test paths. */ export declare function fsStateStore(path: string): StateStore; /** * In-memory StateStore. Useful for tests and dry-run inspection where * neither filesystem nor KV is available. */ export declare function memoryStateStore(initial?: WatcherState): StateStore; //# sourceMappingURL=state-store.d.ts.map