import { Optional } from '../../typings/standard-types'; export declare namespace ColorsUtils { type RGBColor = { r: number; g: number; b: number; }; const isDark: (hexColor: string) => boolean; const getSnippetBgColor: (html: string) => Optional; const getBrightness: (hexColor: string) => number; const unhex: (value: string) => string; const randColor: (colors: any) => any; const lightenDarkenColor: (col: string, amt: number) => string; const getBrightness2: (color: string) => number; const getColorBrightness: (color: RGBColor | string) => number; const isColorBright: (color: RGBColor | string, threshold?: number) => boolean; const convertHexStringToRgbString: (hex: string) => RGBColor; /** * Returns color representation in RGB format */ const colorize: (color: string, params?: { r: number; g: number; b: number; }) => number; const get_random_color: () => string; /** * Adapted from https://github.com/mjijackson * @private * @param {Number} r Red color value * @param {Number} g Green color value * @param {Number} b Blue color value * @return {Array} Hsl color */ const rgbToHsl: (r: number, g: number, b: number) => number[]; /** * @param {Number} p * @param {Number} q * @param {Number} t * @return {Number} */ const hue2rgb: (p: any, q: any, t: any) => number; /** * Returns array representation (ex: [100, 100, 200, 1]) of a color that's in HEX format * @static * @param {String} color ex: FF5555 or FF5544CC (RGBa) * @return {Array} source */ const sourceFromHex: (color: string) => number[]; const getColorByUsername: (username: string, colors: string[]) => string; const randomHsl: () => string; const rainbow: (numOfSteps: number, step: number) => string; const getRandomColor: () => string; const getRandomColor2: () => string; const rainbowStop: (h: number) => string; const colorString: (color: { r; g; b; a; }) => string; const dropShadow: (effect: { offset: { x; y; }; radius; color; }) => string; const innerShadow: (effect: any) => string; const imageURL: (hash: string) => string; const shadeColor: (color: string, percent: number, rgb?: boolean) => string; const darken: (color: string, percent: number, rgb?: boolean) => string; const lighten: (color: any, percent: any, rgb: any) => string; const effects: (baseColor: string) => any; /** * Calculate an in-between color. Returns a "rgba()" string. * Credit: Edwin Martin * http://www.bitstorm.org/jquery/color-animation/jquery.animate-colors.js * @param begin * @param end * @param pos */ const calculateColor: (begin: number, end: number, pos: number) => string; } //# sourceMappingURL=color-utils.d.ts.map