import type { WorkflowRestartPoint, WorkflowResumePoint } from '../../../core/models/index.js'; import { type TaskInfo } from '../../../infra/task/index.js'; export interface ReusedWorktreeExecution { execCwd: string; branch?: string; worktreePath: string; isWorktree: true; } /** * Validate the trust boundary for a worktree that an existing task says to reuse. * * Callers that are about to operate on a task's existing worktree use this * named boundary before reading task data or mutating task state. Initial * executions may still choose a new clone when no reusable path is supplied; * retry/instruct callers must not use that fallback. */ export declare function assertReusableWorktreePath(projectDir: string, candidatePath: string): void; export declare function resolveReusedWorktreeExecution(projectDir: string, task: TaskInfo, configuredStartStep: string | undefined, resumePoint: WorkflowResumePoint | undefined, restartPoint: WorkflowRestartPoint | undefined, retryNote: unknown): ReusedWorktreeExecution | undefined; //# sourceMappingURL=reusedWorktree.d.ts.map