import { z } from "zod"; import { type Stage } from "./config.js"; import { type RunRecord } from "./domain.js"; import type { OperationDependencies } from "./operations.js"; export interface InvocationTask { defaultPrompt: string; context?: (run: RunRecord) => string; preserveCheckout?: boolean; resumeSessionId?: string; outputContract?: z.ZodType; } interface StageExecution { run: RunRecord; name: string; stage: Stage; task: InvocationTask; stepId: number; executionId: string; dependencies: OperationDependencies; } /** One logical stage; only returned format errors admit a second response attempt. */ export declare function invokeStage(execution: StageExecution): Promise; export {};