import type { Marker } from "scripted-yaml/core"; /** * A value a pipeline writes with a marker: `run!sh:`, or a prerequisite's * `$value!sh:`, `$value!file:` or `$value!changes:`. Loading a file makes one * and runs nothing; the runner's `Gate` checks it and sets `passed`. A formula * that reads a check reads it as true or false: scripted-yaml takes `"1"` and `"0"`. */ export declare abstract class Marked { /** The marker as written after the `!`. */ abstract readonly marker: string; /** Set once the runner checked it. Unchecked reads as false. */ passed?: boolean; toString(): string; } /** `run!sh:` a stage's command, or `$value!sh:` a check that passes when the command exits 0. */ export declare class ShellMarker extends Marked { readonly command: unknown; readonly marker = "sh"; constructor(command: unknown); } /** `$value!file:` passes when every path exists, relative to the checkout. One path or a list. */ export declare class FileMarker extends Marked { readonly paths: unknown; readonly marker = "file"; constructor(paths: unknown); } /** `$value!changes:` passes when the changed files match `paths`, `ignore` and `min_files`. */ export declare class ChangesMarker extends Marked { readonly rule: unknown; readonly marker = "changes"; constructor(rule: unknown); } /** The marker functions a pipeline is loaded with. Each keeps the value as written, for `PipelineSource` to check. */ export declare const PIPELINE_MARKERS: Record;