import { type TaskListItem } from '../../infra/task/index.js'; import type { WorkflowRestartPoint, WorkflowResumePoint } from '../../core/models/index.js'; import type { InteractiveImageAttachment } from '../interactive/imageAttachments.js'; export interface FailedTaskRetryPersistenceOptions { readonly task: TaskListItem; readonly projectDir: string; readonly worktreePath: string | undefined; readonly freshStart?: boolean; readonly startStep: string | undefined; readonly retryNote: string | undefined; readonly resumePoint: WorkflowResumePoint | undefined; readonly workflow: string | undefined; readonly taskDir: string | undefined; readonly sourceRunSlug: string | null; readonly restartPoint: WorkflowRestartPoint | undefined; readonly sourceResumePoint?: WorkflowResumePoint; readonly revisedOrder?: { readonly content: string; readonly lang: 'en' | 'ja'; readonly attachments?: readonly InteractiveImageAttachment[]; }; } export declare function appendRetryNote(existing: string | undefined, additional: string): string; /** Persist an approved failed-task retry and return the task to pending. */ export declare function persistFailedTaskRetry(options: FailedTaskRetryPersistenceOptions): Promise; //# sourceMappingURL=taskRetryPersistence.d.ts.map