/** * Reduces a model's written-form output to speakable prose for TTS. * `sanitizeSpeechText` NFKC-normalizes the input, then strips thinking / * analysis / tool tags, code fences and inline code, markdown links, raw HTML, * and URLs, removes parenthetical and bracketed stage directions, normalizes * punctuation and unusual glyphs, and collapses whitespace. * * Stage-direction stripping peels one innermost `()` / `[]` / `{}` / `**` * layer per pass. Honest asides nest a handful of delimiters; each miss * rescan is O(remaining), so an uncapped `((((…hello…))))` bomb hangs TTS. * {@link MAX_NON_SPEECH_STRIP_PASSES} bounds the compatibility peel. If it * exhausts that budget, a linear interval scan removes every remaining * balanced direction rather than exposing text from the outer layers. Lines * with more star markers than that budget can represent are removed between * their outer markers before peeling, preventing emphasis nesting from * exposing alternating layers without rescans. */ /** Honest stage directions nest a handful of delimiters. Each peel rescan is * O(remaining); uncapped nested `((((…))))` hangs TTS. */ export declare const MAX_NON_SPEECH_STRIP_PASSES: 8; export declare function sanitizeSpeechText(input: string): string;