import type { PipelineSpec } from "./spec.js"; import type { Stage, StageContext } from "./stage.js"; import { type PipelineState, type StageRecord } from "./state.js"; import { TaskStage } from "./task-stage.js"; /** * The final report. Code joins the stages' reports into a draft, word for * word, so the agent only trims it and never writes a section of its own. */ export declare class SummaryStage extends TaskStage { private readonly stages; private readonly state; /** `summary` is the pipeline's `summary:`, `{{ }}` filled in. */ constructor(pipeline: PipelineSpec, summary: string | undefined, stages: Stage[], state: PipelineState, dir: string); files(): string[]; run(context: StageContext, record: StageRecord): Promise; /** Written by the runner: there is no `{{ }}` to fill in. */ protected text(): string; /** The stages' reports already update the last round, so the summary starts from the draft. */ protected lastRound(): string | null; /** One `### ` section per stage, in order. */ private draft; private section; /** Moves every heading down so the report's top one is `####`, outside code blocks. */ private demote; private headings; private level; }