export declare const ANSI_COLORS: string[]; export declare const DEFAULT_BG = "#1e1e1e"; export declare const DEFAULT_FG = "#cccccc"; export declare function paletteColor(index: number): string; export declare function rgbColor(value: number): string; /** Convert any CSS color string (hex, rgb()) to a normalized "#rrggbb" hex string. */ export declare function toHex(color: string): string; /** * Resolve a cell's foreground or background color to a hex string. * `cell` must be an xterm IBufferCell. */ export declare function resolveColor(cell: { isFgDefault: () => boolean; isFgRGB: () => boolean; isFgPalette: () => boolean; getFgColor: () => number; isBgDefault: () => boolean; isBgRGB: () => boolean; isBgPalette: () => boolean; getBgColor: () => number; }, type: "fg" | "bg"): string; /** Map of ANSI color names to hex values (matching ANSI_COLORS palette). */ export declare const ANSI_NAMES: Record; /** Resolve a user-provided color (hex or ANSI name) to normalized hex. */ export declare function parseColor(input: string): string;