import type { JsSnapshot } from "./protocol.ts"; export declare class JsStateStorage { private readonly root; private readonly session; private readonly legacySession; private readonly maxBytes; private observed; constructor(agentDir: string, cwd: string, identity: string, maxBytes: number); withLock(operation: () => Promise, signal?: AbortSignal): Promise; migrateLegacy(): Promise; read(name?: string, previous?: JsSnapshot): Promise; private readPath; private decode; write(snapshot: JsSnapshot, name?: string): Promise; reset(): Promise; list(query?: string): Promise; private path; }