/** * Unified bridge from a caught throwable to a structured exit. * * Replaces the recurring pattern in configure/kb/memory command catches * where a `CLIError` branch emits once and a non-CLIError branch emits a * second time with `INTERNAL_SERVER_ERROR`. Because `emitStructuredError` * is typed `never`, the compiler could not see that the second call was * unreachable; to a reader the duplication suggested both calls could * execute. * * `extra` carries contextual fields (e.g. `name`, `requestId`) that the * caller wants surfaced in the default-mode "key=value" tail. * `fallbackCode` lets callers override the non-CLIError bucket — e.g. * `setConfigValue` treats arbitrary throws as `BAD_REQUEST` rather than * a server error because the most likely cause is a user-supplied key. */ export declare function handleCatchAndExit(error: unknown, human: boolean, extra?: Record, fallbackCode?: string): never; //# sourceMappingURL=handle-catch.d.ts.map