export type Color = { type: "ansi4"; index: number; } | { type: "ansi8"; index: number; } | { type: "rgb"; r: number; g: number; b: number; }; export type StyledRun = { text: string; fg: Color | null; bg: Color | null; bold: boolean; italic: boolean; underline: boolean; strikethrough: boolean; dim: boolean; inverse: boolean; conceal: boolean; }; export declare function parseAnsi(input: string): StyledRun[];