/** * Converts a Hexadecimal color to a RGB(A) color array * * @example * ```ts * hexToRGB('#2fd466'); // -> [47, 212, 102] * * // And with alpha channel * hexToRGB('#2fd46680'); // -> [47, 212, 102, 0.5] * ``` * * @param hex - Hex color to convert to RGB * @return - Array with RGB values */ export default function hexToRGB(hex: string): number[];