/** * Strip ANSI terminal-control sequences from a string so text pattern-matching * (blocking-prompt detection, an exited session's last-output tail) sees the * words a human would read rather than raw control bytes. * * Not exhaustive of every escape a TUI could emit, but covers what real * captures show in practice: OSC (window title), CSI (cursor moves, SGR * colour/style), and charset/keypad-mode selects. Lives here — rather than in * one adapter — because more than one consumer needs it (the Codex adapter's * trust-prompt detection and SessionManager's exit-tail sanitizer). */ export declare function stripAnsi(text: string): string; //# sourceMappingURL=strip-ansi.d.ts.map