/** Remove ANSI escape sequences (CSI style) from a string. */ export declare function stripAnsi(text: string): string; /** * Remove ANSI escapes and control characters from untrusted text (model * outputs, errors, titles) so rendering it cannot alter terminal state. Line * breaks and tabs collapse to single spaces because callers interpolate the * result into single terminal lines, where a stray newline would break * viewport math and allow fake rows. */ export declare function sanitizeText(text: string): string;