import type { PipelineSpec } from "./spec.js"; import type { Stage } from "./stage.js"; /** * A pipeline as a Mermaid flowchart: stages in order, the files they hand * each other, and the gates each one needs, coloured by the check. */ export declare class Diagram { private readonly spec; private readonly stages; private readonly results; private readonly lines; private readonly gateIds; constructor(spec: PipelineSpec, stages: Stage[], results: Map); toMarkdown(): string; toMermaid(): string; private flow; /** An input from an earlier stage is a dotted edge; one nobody writes is a file node. */ private files; private gates; private gate; private stageShape; private node; private label; }