/**
 * Strip terminal control sequences from text that reaches an ANSI-preserving
 * chat row. Error text can carry provider-controlled bytes — a JSON error body
 * may decode `\u001b` escapes into live OSC/CSI sequences — so anything routed
 * to `Text` is sanitized first.
 */
export declare function sanitizeTuiErrorMessage(value: string): string;
/**
 * Headline for an extension-error line in the chat log.
 *
 * Errors emitted by the session runtime itself (extensionPath `<runtime>`,
 * e.g. background session-title generation) are not extension failures, so
 * they render as runtime errors labeled with the emitting event instead of a
 * confusing `Extension "<runtime>" error:` attribution.
 */
export declare function formatExtensionErrorHeadline(error: {
    readonly extensionPath: string;
    readonly event?: string;
    readonly error: string;
}): string;
//# sourceMappingURL=extension-error-format.d.ts.map