export interface OutboundLiteralSpan { start: number; end: number; } /** * Strip machine syntax from outbound agent text. Paired tags are removed with * their contents; an unclosed tag is removed to end-of-text (the live-observed * drift shape); `` wrappers are unwrapped keeping their contents; * fenced ``` blocks and inline `code` spans pass through untouched so * documentation examples of the syntax survive. Idempotent — sanitizing * already-sanitized text is a no-op. * * Literal ranges are supplied by trusted structured renderers, never inferred * from serialized message metadata. Cosmetic cleanup cannot rewrite their bytes. */ export declare function sanitizeOutboundTextWithLiterals(text: string, literalSpans: readonly OutboundLiteralSpan[]): { text: string; literalSpans: OutboundLiteralSpan[]; }; /** Existing string-only callers retain the same cosmetic policy. */ export declare function sanitizeOutboundText(text: string): string;