import { UsageError } from "../usage-error.js"; /** * A pipeline that cannot run, found before a token is spent. `line` and `key` * say where, so an editor can point at it. */ export declare class PipelineError extends UsageError { /** 1-based, when the problem has a place in the text. */ readonly line?: number; /** Like `stages[2].when` or `prerequisites.staging.env`. */ readonly key?: string; /** What the message is already prefixed with: a file path, or `--stage plan`. */ readonly source?: string; constructor(message: string, where?: { line?: number; key?: string; source?: string; }); /** The same error, its message prefixed with where it comes from, unless it has a source already. */ in(source: string): PipelineError; } /** Several mistakes found at once, as scripted-yaml reports them. The message holds them all, one per line. */ export declare class PipelineErrors extends PipelineError { readonly errors: PipelineError[]; constructor(errors: PipelineError[]); /** One error stays one error. */ static of(errors: PipelineError[]): PipelineError; in(source: string): PipelineError; }