import { Pipeline } from "./pipeline-document.js"; /** One line of `Pipelines.list()`. */ export interface PipelineSummary { /** What `open` and `$extends:` take. */ name: string; description: string; /** What starts it: one of `PIPELINE_TARGETS`, or free text. */ target?: string; /** It ships with testeiya. False for one of your own, also when it has a bundled pipeline's name. */ bundled: boolean; /** False when it has errors. Its description is then empty. */ valid: boolean; } export interface ParseOptions { /** * The name it is saved under in your own pipelines. It becomes the pipeline's * name when the YAML has no `name:` and the pipeline it extends has none. */ name?: string; } /** * The pipelines a pipeline can be opened from and can `$extends`: the ones * bundled with testeiya, and your own, as name to YAML. Your own win over a * bundled pipeline of the same name. It reads no file, so it works in a Worker * and a browser. */ export declare class Pipelines { private readonly own; /** `own` is your saved pipelines, name to YAML. Without it there are only the bundled ones. */ constructor(own?: Record); /** Every name `open` takes, sorted. */ names(): string[]; has(name: string): boolean; /** Name, description and target of every pipeline, sorted by name. A broken one is listed with `valid: false`. */ list(): PipelineSummary[]; /** A bundled pipeline, or one of your own, by name. */ open(name: string): Pipeline; /** A pipeline from YAML text, such as an editor's. It never throws: ask the pipeline for its `errors()`. */ parse(yaml: string, options?: ParseOptions): Pipeline; private document; /** * The text that `$extends: name` stands for. A pipeline's own name means the * bundled one, so your `regression` can extend the bundled `regression`. * scripted-yaml applies the parent's own `$extends` and finds a loop. */ private read; private isOwn; }