import { type ChildProcess } from "child_process"; import type { EventEmitter } from "events"; export type WatchSignal = "SIGINT" | "SIGTERM"; type WatchChildProcess = EventEmitter & Pick; export declare function superviseWatchLifecycle(devServer: WatchChildProcess, stopGenerator: () => Promise, signalSource?: EventEmitter): Promise; /** * Prints a command failure the way a CLI should: the actionable message first, * nested causes indented under it, and the stack only when `--verbose` asked * for it. Errors raised here are written for the person running the command, * so a bare stack trace would bury the part that tells them what to do. */ export declare function reportCliError(error: unknown, argv?: readonly string[]): void; export declare function runCli(argv?: string[]): Promise; export {};