import { IColor, IHsla, IRgb } from '@tidy-ui/types'; /** * Creates hsla color representation * * @param {IHsla} p hsla attributes * @param {number} alpha alpha attribute to override * @returns {string} hsla representation of the color */ declare const hsla: (p: IHsla, alpha?: number) => string; /** * Creates rgb color representation * * @param {IRgb} rgb RGB attributes * @returns {string} rgb representation of the color */ declare const rgb: (rgb: IRgb) => string; /** * Creates color shades for a color * * @param {Record} p color record * @returns {IColor} shades for a color */ declare const createColor: (p: Record) => IColor; /** * Convert HSL to RGB * * @param {number} h Hue ∈ [0, 360) * @param {number} s Saturation ∈ [0, 100] * @param {number} l Lightness ∈ [0, 100] * @returns {IRgb} r, g, b ∈ [0, 255] */ declare const hsl2rgb: (h: number, s: number, l: number) => IRgb; export { createColor, hsl2rgb, hsla, rgb };