import type { RGBTuple } from './RGBToHex.js'; /** * Converts a Hexadecimal color to a RGB(A) color array * * @param hex - Hex color to convert to RGB * * @returns Array with RGB values or `null` if parsing fails * * @example * ```ts * hexToRGB('#fff'); // --> [255, 255, 255] * hexToRGB('#2fd466'); // --> [47, 212, 102] * * // Null on failed values * hexToRGB('#ab'); // --> null * hexToRGB(''); // --> null * * // And with alpha channel * hexToRGB('#2fd46680'); // --> [47, 212, 102, 0.5] * ``` */ export declare function hexToRGB(hex: string): RGBTuple | null; export default hexToRGB;