import { type Document } from "scripted-yaml/core"; import { PipelineDefinition } from "./pipeline-definition.js"; import type { Path } from "./pipeline-source.js"; type Fail = (message: string, at?: Path) => never; /** * A loaded pipeline file into a `PipelineSpec`: the checks the DSL cannot * make (ids, sessions, timeouts, the values of markers), the defaults, and * which prerequisites and variables each part reads. */ export declare class PipelineBuilder { private readonly document; private readonly text; private readonly name; private readonly fail; private readonly reads; private readonly markers; private prerequisites; constructor(document: Document, text: string, name: string | undefined, fail: Fail); build(): PipelineDefinition; private gate; private changes; private stage; /** A `when!` formula, and the prerequisites it reads: directly, and through the prerequisites it reads. */ private condition; /** A formula's read: `vars.NAME` is an input, `prerequisites.name` another prerequisite. */ private read; private shell; /** `env` and `packages`: text, or a formula, kept as written. */ private values; /** Text that may hold `{{ }}`, as written. */ private written; private plain; private list; private static isRecord; private static titleOf; private static emojiOf; private static isSlug; } export {};