import type { ActionRunFailure, ActionRunRecord } from "@sixb/core/storage"; import type { ActionRunResult, RunActionJobInput } from "../types"; export declare function requireFinishedAt(input: { readonly actionId: string; readonly runId: string; readonly finishedAt: Date | undefined; }): Date; /** * Decides whether a redelivered `running` run reached a resumable boundary. * * A succeeded writeback or an authoritative ontology commit for this run means the previous attempt * got far enough that resuming is safe; anything earlier is treated as a lost lease. */ export declare function resolveRedeliveredRunningRun(input: RunActionJobInput, run: ActionRunRecord): Promise<{ readonly kind: "resume"; readonly run: ActionRunRecord; } | { readonly kind: "finished"; readonly result: ActionRunResult; }>; export declare function failedResult(runId: string, actionId: string, run: ActionRunRecord, failure: ActionRunFailure): ActionRunResult; //# sourceMappingURL=results.d.ts.map