import type { CheckpointId, IterationCheckpoint } from '../../types/hitl/index.js';
import type { Run, RunEvent, RunStoreConfig } from '../../types/run/index.js';
export declare class RunDiskStore {
    private baseDir;
    private runDir;
    private log;
    private indexLock;
    constructor(config: RunStoreConfig);
    private requireInit;
    initRun(runId: string, parentRunId?: string): Promise<string>;
    appendEvent(event: RunEvent): Promise<void>;
    writeRunMeta(run: Run): Promise<void>;
    writeMessages(run: Run): Promise<void>;
    writeReport(content: string): Promise<string>;
    getRunDir(): string | null;
    writeCheckpoint(checkpoint: IterationCheckpoint): Promise<void>;
    readCheckpoint(checkpointId: CheckpointId): Promise<IterationCheckpoint | null>;
    listCheckpoints(): Promise<IterationCheckpoint[]>;
    deleteCheckpoint(checkpointId: CheckpointId): Promise<void>;
    static listRuns(baseDir: string): Promise<Array<{
        id: string;
        agentName: string;
        status: string;
        startedAt: number;
        endedAt?: number;
    }>>;
    addToIndex(run: Run): Promise<void>;
}
//# sourceMappingURL=disk.d.ts.map