/** * Color Converter - CSS colors to ANSI extended color codes * Supports 256-color and truecolor (24-bit) terminals */ export type ColorCapability = 'full' | 'basic' | 'none'; export interface RGB { r: number; g: number; b: number; } export declare function hexToRgb(hex: string): RGB; export declare function rgbToHex(r: number, g: number, b: number): string; export declare function hexTo256(hex: string): number; export declare function colorToHex(color: string): string; export declare function getANSIForeground(color: string, capability: ColorCapability): string; export declare function getANSIBackground(color: string, capability: ColorCapability): string; export declare function getANSI256Foreground(colorIndex: number): string; export declare function getANSI256Background(colorIndex: number): string; export declare function extractGradientColors(gradient: string): string[]; export declare function gradientToSingleColor(gradient: string): string; export declare function cssColorToANSI(cssColor: string, capability: ColorCapability, isBackground?: boolean): string; export declare const ANSI: { reset: string; bold: string; dim: string; italic: string; underline: string; blink: string; inverse: string; hidden: string; strikethrough: string; fg: { black: string; red: string; green: string; yellow: string; blue: string; magenta: string; cyan: string; white: string; gray: string; brightRed: string; brightGreen: string; brightYellow: string; brightBlue: string; brightMagenta: string; brightCyan: string; brightWhite: string; }; bg: { black: string; red: string; green: string; yellow: string; blue: string; magenta: string; cyan: string; white: string; gray: string; brightRed: string; brightGreen: string; brightYellow: string; brightBlue: string; brightMagenta: string; brightCyan: string; brightWhite: string; }; rgb: (r: number, g: number, b: number) => string; bgRgb: (r: number, g: number, b: number) => string; color256: (n: number) => string; bgColor256: (n: number) => string; }; //# sourceMappingURL=color-converter.d.ts.map