/** Rows written 2026-09-25 onward by captureToolResults-on apps. Read as "full". */ export declare const TOOL_ERROR_CAPTURE_METADATA_KEY = "__tool_error_capture_version"; /** * Stamped on every failed tool span: what `error_message` holds. `signature` is * a deliberate withholding (captureToolResults is off), never the same as a row * with no text. */ export declare const TOOL_ERROR_DETAIL_METADATA_KEY = "__tool_error_detail"; export declare function redactToolErrorMessage(value: string, options?: { truncated?: boolean; }): string; export declare function sanitizeToolErrorMessage(value: string): string; /** * The part of a tool failure that is always recorded, even with * captureToolResults off: the first non-blank line, bounded. It is stored * without the owner opting in, so beyond credentials (a quoted secret can span * lines, so redact the whole text first) it also drops the emails and opaque * ids a failing tool echoes back. The `Error running : ` prefix is * dropped so signatures group by cause, and a JSON `{ error, message }` result * is summarized as `error: message` rather than its opening brace. Never * empty — an empty `error_message` reads as "no reason was captured", which is * a different fact from "the tool gave no text". */ export declare function toolErrorSignature(value: unknown): string;