/** * Convert chalk/SGR ANSI strings into OpenTUI `StyledText` so legacy-colored * output (intro card, badges) can render with real fg/bg in OpenTUI. */ import { RGBA, StyledText } from "@opentui/core"; export interface AnsiToStyledOptions { /** * Applied to text that has no explicit SGR foreground (so assistant * bodies can default to green while chalk bold/cyan/code still wins). */ readonly defaultFg?: string | RGBA | undefined; } /** * Parse a string that may contain CSI SGR sequences into StyledText. * Unsupported sequences are ignored; plain text is preserved. */ export declare function ansiToStyledText(input: string, options?: AnsiToStyledOptions): StyledText;