import { type TaskFailure, type TaskListItem } from '../../infra/task/index.js'; import type { WorkflowConfig, WorkflowRestartPoint, WorkflowResumePoint } from '../../core/models/index.js'; import { type RunMeta } from '../../core/workflow/run/run-meta.js'; import { type TaskRetryStartOptionsModel, type SelectTaskRetryStartOptions } from './list/taskRetryStartSelection.js'; export interface FailedTaskRetryPreparation { readonly worktreePath: string | undefined; readonly freshStart: boolean; readonly interactionCwd: string; readonly runsBaseDir: string; readonly failure: TaskFailure; readonly failedStep: string | undefined; readonly matchedRunSlug: string | null; readonly runMeta: RunMeta | null; readonly previousWorkflow: string | undefined; readonly previousStartStep?: string; readonly previousOrderContent: string; readonly resumePoint: WorkflowResumePoint | undefined; readonly sourceResumePoint?: WorkflowResumePoint; } export interface FailedTaskRetryStartContext { readonly workflowName: string; readonly workflowConfig: WorkflowConfig; readonly workflowOverride: string | undefined; readonly options: SelectTaskRetryStartOptions; readonly startOptions: TaskRetryStartOptionsModel; readonly sourceResumePoint: WorkflowResumePoint | undefined; } export interface ResolvedFailedTaskRetryStart { readonly label: string; readonly startStep: string | undefined; readonly resumePoint: WorkflowResumePoint | undefined; readonly restartPoint: WorkflowRestartPoint | undefined; readonly sourceResumePoint: WorkflowResumePoint | undefined; } export declare function prepareFailedTaskRetry(task: TaskListItem, projectDir: string): FailedTaskRetryPreparation; export declare function buildFailedTaskRetryStartContext(preparation: FailedTaskRetryPreparation, projectDir: string, workflowName: string): FailedTaskRetryStartContext; export declare function resolveFailedTaskRetryStart(context: FailedTaskRetryStartContext, startOptionId: string): ResolvedFailedTaskRetryStart; //# sourceMappingURL=taskRetryPreparation.d.ts.map