import { ColorRange } from 'constants/color-ranges'; import { HexColor, RGBColor } from 'reducers'; /** * get r g b from hex code * * @param hex * @returns array of r g bs */ export declare function hexToRgb(hex: string): RGBColor; export declare function isHexColor(hex: string): RegExpExecArray | null; /** * get hex from r g b * * @param rgb * @returns hex string */ export declare function rgbToHex([r, g, b]: RGBColor): HexColor; /** * Get color group name by parsing name, discard step in the name * e.g. Global Warming 6 -> Global Warming * * @param {Object} colorRange * @return {string | null} */ export declare function getColorGroupByName(colorRange: ColorRange): string | null; /** * Get a reversed colorRange * @param reversed * @param colorRange */ export declare function reverseColorRange(reversed: boolean, colorRange: ColorRange): ColorRange | null; /** * given a list of rgb arrays it will generate a linear gradient css rule * @param direction * @param colors * @return */ export declare function createLinearGradient(direction: string, colors: RGBColor[]): string; /** * Whether color is rgb * @returns */ export declare function isRgbColor(color: unknown): color is RGBColor; export declare function checkColorOrFallback(hexColor: any, fallback?: import("@deck.gl/core").Color): any;