import type { Changes } from "../git.js"; import { type Marked } from "./markers.js"; import type { ChangesSpec } from "./spec.js"; import type { Variables } from "./variables.js"; /** * A check the runner makes before the first stage: a prerequisite's * `$value!sh`, `$value!file` or `$value!changes`, or a `--gate`. Its result * goes on the marker, so the formulas that read the prerequisite see it. */ export declare class Gate { readonly name: string; readonly message: string; private readonly check; /** The rule of a `$value!changes`, as `PipelineSource` checked it. */ private readonly rule?; constructor(name: string, message: string, check: Marked, /** The rule of a `$value!changes`, as `PipelineSource` checked it. */ rule?: ChangesSpec | undefined); /** A gate the CI job adds with `--gate NAME:COMMAND`. */ static command(name: string, run: string): Gate; get readsChanges(): boolean; passes(context: GateContext): Promise; private evaluate; private matchesChanges; private succeeds; private static list; } export interface GateContext { cwd: string; vars: Variables; changes: Changes; }