import type { WorkflowAttemptRecord } from './runtime.js'; type WorkflowSqliteConnection = ConstructorParameters[0]; export interface ContinuationAttemptQuery { workflowId: string; nodeId: string; /** The Todo this run is bound to. Runs bound to any other Todo — or to none — * are invisible here, so a continuation can never cross Todos. */ todoId: string; /** This run's own id and start. Only runs that began strictly before it are * candidates: two runs of the same Workflow can be in flight on one Todo, and * a run must never pick up a thread from one that started after it. */ runId: string; runStartedAt: string; } /** * The newest completed attempt of `nodeId` from an EARLIER run of the same * Workflow for the same Todo. This is what lets a re-armed run pick up the * engine session its predecessor left behind instead of starting cold. */ export declare function readContinuationAttempt(db: WorkflowSqliteConnection, query: ContinuationAttemptQuery): WorkflowAttemptRecord | null; export {}; //# sourceMappingURL=repository-continuation.d.ts.map