export declare function traceHeaders(): Record; /** * Redact a string for anything that leaves this process (diagnostic lines, * execution traces). * * Kept in lockstep with ab-agent's `lib/telemetry.cleanText` — the two feed the * same `media_chat_turn_trace` table, and a table whose rows were sanitized by * two different rulesets is a table nobody can reason about. ANSI stripping, * e-mail and phone redaction were added here to close that gap. * * `max` caps the result in BYTES, keeping the head. Callers that need the tail * (a command's decisive line is its last one) slice before calling. */ export declare function cleanDiagnosticText(value: string, max?: number): string; /** * Exit code → the outcome vocabulary of the logging contract. * * Exported because the execution trace (project/trace.ts) reports the same * verdict for the same run: two mappings would let a run be `failure` in the * diagnostic line and `success` in the database. */ export declare function outcomeOf(exitCode: number): 'success' | 'cancelled' | 'rejected' | 'failure'; /** Opt-in line framing for hosts; stdout is exclusively the existing skill protocol. */ export declare function diagnostic(exitCode: number, durationMs: number, error?: unknown): void;