import { type WorkflowExecution } from '../core/index.js'; import type { SlopeStore } from '../core/store.js'; export interface StaleWorkflowExecution { exec: WorkflowExecution; reason: string; } export interface WorkflowResyncResult { paused: StaleWorkflowExecution[]; fastForwarded: Array<{ exec: WorkflowExecution; phase: string; step: string; reason: string; }>; } export interface SprintStateRebindResult { sprint: number; previousSprint?: number; rebound: boolean; reason?: string; } export declare function inferSprintFromBranch(cwd: string): number | null; export declare function currentBranch(cwd: string): string | null; export declare function sprintNumberFromId(sprintId: string | undefined): number | null; export declare function sprintNumberForExecution(exec: Pick): number | null; export declare function sprintLabelForExecution(exec: Pick): string; export declare function scorecardExistsForSprint(cwd: string, sprint: number): boolean; export declare function completedRoadmapSprintIds(cwd: string, config?: import("./config.js").SlopeConfig): Set; export declare function findStaleWorkflowExecutions(cwd: string, store: Pick & Partial>, options?: { staleAgeMs?: number; now?: Date; branchSprint?: number | null; includeNewerRunning?: boolean; currentSessionId?: string; deadSessionGraceMs?: number; }): Promise; export declare function reconcileWorkflowExecutions(cwd: string, store: Pick & Partial>, options?: { includeNewerRunning?: boolean; currentSessionId?: string; }): Promise; export declare function reconcileSprintStateForBranch(cwd: string): SprintStateRebindResult | null; //# sourceMappingURL=workflow-resync.d.ts.map