import type { PersistedRunState, RunId, RunPruneCandidate, RunSummary, TestCaseRunStatus, WorkflowRunDetailDto, } from "@codemation/core"; export interface WorkflowRunRepository { load(runId: string): Promise; loadRunDetail?(runId: string): Promise; save(state: PersistedRunState): Promise; listRuns(args: Readonly<{ workflowId?: string; limit?: number }>): Promise>; listRunsOlderThan?( args: Readonly<{ nowIso: string; defaultRetentionSeconds: number; limit?: number }>, ): Promise>; listBinaryStorageKeys?(runId: RunId): Promise>; deleteRun(runId: RunId): Promise; updateTestCaseStatus?(runId: RunId, status: TestCaseRunStatus): Promise; }