import type { TaskOutcome, TaskRequest } from "../run.js"; import { Stage, type Item, type StageContext } from "./stage.js"; import { type StageResult } from "./state.js"; import type { Variables } from "./variables.js"; /** * An agent stage: one task, run in this process. It writes its report to `.md` * and its verdict to `.json`, in its folder. */ export declare class TaskStage extends Stage { protected readonly result: { field: "report"; extension: string; }; /** Whether TESTEIYA_PIPELINE_SPAWN=1 runs it as a `testeiya task` child process. */ protected readonly spawns: boolean; files(): string[]; protected runItem(context: StageContext, item: Item, vars: Variables): Promise; /** After the task ran in this process, before its report is copied. */ protected finished(_dir: string, _item: Item, _outcome: TaskOutcome): void; protected request(context: StageContext, item: Item, outputs: string[], task: string): TaskRequest; /** The old path: a `testeiya task` child process. */ private spawn; private options; /** The task, then where its files are, so the model never guesses a path. */ private task; /** The task as written, `{{ }}` filled in with this item's variables. */ protected text(context: StageContext, vars: Variables): string; /** A new round updates the last one's result instead of starting over. */ protected lastRound(context: StageContext): string | null; private readEnvelope; }