/** * Terminal adapter for `gjc crash`. * * Keeps all I/O concerns (readline, TTY detection, stdout) out of the flow in * `crash/report.ts`, which is the part that carries the consent contract and is * therefore tested against stubbed boundaries. */ import type { Settings } from "../config/settings"; import { type CrashReportOutcome } from "../crash/report"; import { type CrashRelayOutcome } from "../crash/upstream/relay"; export declare function runCrashReportCommand(): Promise; export declare function runCrashListCommand(json: boolean): Promise; /** * Batch-relay every due signature to the configured upstream. * * The startup relay is silent and best-effort; this is the loud form, so a * refusal is reported as a refusal instead of being swallowed. It shares the * same gate: with `crashReport.upstream` off, it explains that and exits * non-zero rather than quietly doing nothing. */ export declare function crashRelayExitCode(outcome: CrashRelayOutcome): number; export declare function runCrashRelayCommand(settings: Settings): Promise;