import type { Variables } from "./variables.js"; export declare const KILL_GRACE_MS = 5000; /** * Starts one stage process at a time, streams its output, and stops its whole * process group on a timeout or Ctrl-C. */ export declare class Launcher { private readonly cwd; interrupted: boolean; private current; private task; constructor(cwd: string); watchInterrupt(): void; /** An agent stage running in this process: Ctrl-C aborts it. */ track(task: AbortController): void; untrack(): void; /** A shell command when `args` is null, otherwise a program and its arguments. */ start(launch: Launch): Promise; private kill; } export interface Launch { command: string; args: string[] | null; vars: Variables; /** Where to copy the output, besides the console. */ log: string | null; timeout?: number; } export interface Launched { code: number; timedOut: boolean; interrupted: boolean; }