import type { Override } from "./override.js"; import type { PipelineDefinition } from "./pipeline-definition.js"; import type { PipelineSpec } from "./spec.js"; /** * A pipeline file, found by path or bundled name. It reads the text and hands * it to a `PipelineSource`, which validates it. `$extends: name` is a bundled * pipeline; `$extends: ./path.yml` a file beside it. Every message names the file. */ export declare class PipelineFile { readonly path: string; constructor(path: string); /** A path when it looks like one, otherwise a bundled pipeline's name. */ static find(name: string): PipelineFile; static bundled(): Array<{ name: string; description: string; target?: string; }>; text(): string; read(overrides?: Override[]): PipelineSpec; /** The pipeline with `$extends` and every override applied, ready to run. */ definition(overrides?: Override[]): PipelineDefinition; /** Parse text as this file, so a copy keeps the file's name and finds what it extends. */ parse(text: string): PipelineDefinition; private source; /** A bundled pipeline by its name. A path is left to the disk, relative to the file that names it. */ private static parent; private located; private static isPath; }