import type { Orckit } from '../orchestrator/orchestrator.js'; import type { ProcessState } from '../orchestrator/lifecycle.js'; export interface CliReporterOptions { showOutput?: boolean; showBuild?: boolean; /** * How many of the most recent output lines to dump beneath a `process:failed` * line. 0 disables the dump entirely. Defaults to 10. */ failureTailLines?: number; /** * Optional hint sink for messages that should appear above the REPL prompt. * If omitted, hints are written to stdout with a leading blank line. */ printHint?: (message: string) => void; /** * Where to send output. Defaults to `console.log`. The dashboard passes its * `printAbove` so reporter output flows above the live region cleanly. */ out?: (msg: string) => void; /** * Suppress per-process lifecycle lines + the all-ready and boot-complete * banners. Set this when the dashboard is owning state rendering. Failure * tails (the recent-output dump) and preflight results still print. */ quietProcessEvents?: boolean; } export declare function attachCliReporter(orckit: Orckit, opts?: CliReporterOptions): () => void; /** * Print a per-process "what went wrong" dump for the named failed processes. * Called after a boot failure tears the live view down — by that point the * inline tails the cli-reporter emitted during boot have scrolled off, and * for processes that died before producing any output (port conflicts, * missing binaries, bad cwd) nothing was printed at all. The dump prints a * header, the captured error message, and the tail of the buffer so the user * has a single, scannable block of context for each failure. */ export declare function printFailureDump(orckit: Orckit, names: string[], lastErrors: ReadonlyMap, opts?: { out?: (msg: string) => void; tailLines?: number; }): void; export declare function renderStatus(states: Map): string; //# sourceMappingURL=cli-reporter.d.ts.map