import type { AgentLoopCheckpoint } from '../../../core/runtime/loop/index.js';
import type { FileHeartbeatTaskRepositoryOptions, HeartbeatTask, HeartbeatTaskRunRecord, HeartbeatTaskRunRecordEntry, HeartbeatTaskStore } from './types.js';
export declare class FileHeartbeatTaskRepository implements HeartbeatTaskStore {
    private readonly tasksDir;
    private readonly checkpointsDir;
    private readonly runsDir;
    constructor(options: FileHeartbeatTaskRepositoryOptions);
    listTasks(): Promise<HeartbeatTask[]>;
    saveTask(task: HeartbeatTask): Promise<void>;
    deleteTask(task: HeartbeatTask): Promise<void>;
    loadCheckpoint(task: HeartbeatTask): Promise<AgentLoopCheckpoint | undefined>;
    saveCheckpoint(task: HeartbeatTask, checkpoint: AgentLoopCheckpoint): Promise<void>;
    saveRunRecord(record: HeartbeatTaskRunRecord): Promise<void>;
    listRunRecords(options?: {
        taskId?: string;
        limit?: number;
    }): Promise<HeartbeatTaskRunRecordEntry[]>;
    loadRunRecord(id: string): Promise<HeartbeatTaskRunRecordEntry | undefined>;
    private deleteRunRecordsForTask;
    private readTaskFile;
    private readRunRecordFile;
    private checkpointPathForTask;
    private static safeTaskFileName;
    private static runRecordEntryFromPath;
}
//# sourceMappingURL=repository.d.ts.map