export type RGB = [number, number, number]; export type COLOR_FORMAT = 'RGB' | 'HEX' | 'HSL'; export declare const rgbToXY: (rgb: RGB, hue: RGB) => { x: number; y: number; }; export declare const xyToRgb: (x: number, y: number, hue: RGB) => number[]; export declare const rgbToHue: (rgb: RGB) => RGB; export declare const toHex: (n: number) => string; export declare const minmax: (min: number, n: number, max: number) => number; export declare const rgbaToArr: (str: string) => number[]; export declare const hexToRGBA: (hex: string, alpha?: number) => string; export declare const rgbaToHex: (rgba: string) => string; export declare const rgbToHSL: ([r, g, b]: RGB) => [number, number, number]; export declare const rgbaToHsla: (rgba: string) => string; export declare const hslToRGB: ([h, s, l]: [number, number, number]) => RGB; export declare const hslToRGBA: (hsl: string) => string; export declare const hexToHSL: (hex: string) => string; export declare const isHex: (value: string) => boolean; export declare const isValidRGBA: (value: string) => boolean; export declare const isValidRGB: (value: string) => boolean; export declare const isValidHSLA: (value: string) => boolean;