import type { LLMContextSnapshot, RunRecord } from '../../core/types'; import type { ExportedRun, RunLock, RunStore } from '../../core/store'; export declare const XLLM_RUNS_DB = "xllm-runs"; interface LockLike { request(name: string, options: { ifAvailable: boolean; }, cb: (lock: unknown) => Promise): Promise; query(): Promise<{ held?: { name?: string; }[]; }>; } export declare class IndexedDbRunStore implements RunStore { private readonly options; readonly persistent = true; private db; private readonly localLocks; constructor(options?: { dbName?: string; idb?: IDBFactory; locks?: LockLike | null; }); private open; private locks; runsDir(): string | undefined; runDir(): string | undefined; createRun(): Promise; writeRecord(record: RunRecord): Promise; readRecord(runId: string): Promise; listRecords(): Promise; putSnapshot(runId: string, snapshot: LLMContextSnapshot): Promise; getSnapshot(runId: string, idx: number): Promise; listSnapshots(runId: string): Promise; lockRun(runId: string): Promise; isRunLive(runId: string): Promise; removeRun(runId: string): Promise; importRun(run: ExportedRun): Promise; } export {}; //# sourceMappingURL=store.d.ts.map