import { type PortableState } from "./portable-state.ts"; export declare class TsStateStorage { readonly directory: string; readonly projectDirectory: string; private readonly profilesDirectory; private readonly maxBytes; constructor(agentDir: string, cwd: string, sessionId: string, maxBytes: number); read(name?: string): Promise; initial(): Promise<{ state: PortableState; observedProject: PortableState; }>; readProfile(name: string): Promise; readProject(): Promise; writeProfile(name: string, state: PortableState): Promise; list(): Promise<{ profiles: string[]; candidates: string[]; }>; mergeProject(observed: PortableState, candidate: PortableState): Promise<{ state: PortableState; conflicts: string[]; }>; private readPath; write(state: PortableState, name?: string): Promise; private writePath; private atomicWrite; private path; } export declare function assertPortableState(value: unknown): asserts value is PortableState;