/** * Convert a decimal to its RGB representation * @param dec - Decimal-encoded color. * @return RGB array */ export declare const decToRgb: (dec: number) => number[]; /** * Convert a HEX string to its decimal representation * @param hex - HEX string * @return Decimal representation */ export declare const hexToDec: (hex: string) => number; /** * Convert a HEX-encoded color to an RGB-encoded color * @param hex - HEX-encoded color string. * @param normalizeColor - If `true` the returned RGB values will be * normalized to `[0,1]`. * @return Triple holding the RGB values. */ export declare const hexToRgbArray: (hex: string, normalizeColor?: boolean) => [number, number, number]; /** * Convert a HEX-encoded color to an RGBA-encoded color * @param hex - HEX-encoded color string. * @param normalizeColor - If `true` the returned RGBA values will be * normalized to `[0, 1]`. * @return Quadruple holding the RGBA values. */ export declare const hexToRgbaArray: (hex: string, normalizeColor?: boolean) => [number, number, number, number]; /** * Convert RGB(A) string to its array representation * @param rgbStr - RGB(A) string * @return RGB(A) array */ export declare const rgbStrToRgbArray: (rgbStr: string) => [number, number, number] | [number, number, number, number]; /** * Same as `rgbStrToRgbArray()` */ export declare const rgbaStrToRgbaArray: (rgbStr: string) => [number, number, number] | [number, number, number, number]; /** * Convert RGB string to its decimal representation * @param rgbStr - RGB string * @return Decimal representation */ export declare const rgbStrToDec: (rgbStr: string) => number; /** * Convert RGB values to a HEX string * @param r - Red component * @param g - Green component * @param b - Blue component * @return HEX string */ export declare const rgbToHex: (r: number, g: number, b: number) => string; /** * Convert a color to an RGBA color * @param color - Color to be converted. Currently * supports: HEX-String, HEX-Deximal, RGB, or RGBA. * @param normalizeColor - If `true` the returned RGBA values will be * normalized to `[0,1]`. * @return Quadruple defining an RGBA color. */ export declare const toRgbaArray: (color: string | number | number[], normalizeColor?: boolean) => [number, number, number, number];