import { type FailureSummary } from "../execution/failure.js"; /** Marks whether the active command owes a --json stream a terminal pair. * Set by run/session once the mode is known (and by refuse, which owns the * pair a refused stream is owed). */ export declare const markJsonCrashStream: (active: boolean) => void; export declare const crashSummary: (kind: string, error: unknown) => FailureSummary; /** The failure/done pair a --json stream is owed when hcn itself dies. The * done event carries cause "crash" and hcn's own exit code (4): there is no * child exit code to report at this point. */ export declare const writeCrashPair: (summary: FailureSummary) => void; /** Main-loop failure: natural exit. The exit handler writes the ledger's * end line with the final code once the process actually exits. */ export declare const reportMainCrash: (kind: string, error: unknown) => void; export declare const handleProcessCrash: (kind: string, error: unknown, write?: (line: string) => void) => never; export declare const installCrashHandlers: () => void; //# sourceMappingURL=crash.d.ts.map