/** Durable, private, crash-safe storage for resumable run metadata. */ import { type RunRecordV1 } from "../core/contracts.ts"; export declare class RunStoreError extends Error { readonly code: string; constructor(code: string, message: string); } export declare function defaultRunStoreRoot(env?: NodeJS.ProcessEnv): string; export declare class RunStore { readonly root: string; constructor(root?: string); private runDirectory; private recordPath; initialize(): Promise; create(record: RunRecordV1): Promise; read(runId: string): Promise; update(runId: string, update: (current: RunRecordV1) => RunRecordV1 | Promise): Promise; writeArtifact(runId: string, name: string, value: unknown): Promise; readArtifact(runId: string, name: string): Promise; readArtifactOptional(runId: string, name: string): Promise; /** Serialize a state-changing run action across processes. */ exclusive(runId: string, action: () => Promise): Promise; private withLock; } //# sourceMappingURL=run-store.d.ts.map