import { type Ps } from "webappwiz/system"; import type { WorkflowRun, Workflows } from "./workflows.js"; /** What a `CliWorkflows` spawns through; the real process by default. */ export interface CliWorkflowsOptions { ps?: Ps; } /** GitHub Actions workflows, via the `gh` CLI. */ export declare class CliWorkflows implements Workflows { private readonly ps; constructor(opts?: CliWorkflowsOptions); repo(): Promise; dispatch(file: string, branch: string, inputs: Record): Promise; runs(file: string, sha: string): Promise; rerun(id: string, failedOnly: boolean): Promise; failedLog(id: string): Promise; /** Runs gh, logging in first when `login` says to; throws on a nonzero exit. */ private gh; }