/**
 * @packageDocumentation
 * @module utils
 */
import type { RGBA } from './color.cjs';
/**
 * Converts hsl to rgb normalized
 * @url https://jsfiddle.net/Lamik/reuk63ay/91
 * @param h - hue [0..360]
 * @param s - saturation [0..1]
 * @param l - lightness [0..1]
 * @returns - [r, g, b] each normalized to [0..1]
 * @hidden
 */
export declare function hsl2rgbn(h: number, s: number, l: number): number[];
/**
 * Convert rgb to hsl
 * @param color - the color
 * @returns - [h, s, l]
 */
export declare function rgb2hsl(color: RGBA): number[];
/**
 * Convert hsl to rgb
 * @param h - hue | [h, s, l]
 * @param s - saturation
 * @param l - lightness
 * @returns
 */
export declare function hsl2rgb(h: number | number[], s?: number, l?: number): number[];
/**
 * Convert hwb to rgb
 * @param h - hue | [h, s, l]
 * @param w - whiteness
 * @param b - blackness
 * @returns
 */
export declare function hwb2rgb(h: number | number[], w?: number, b?: number): number[];
/**
 * Convert hsv to rgb
 * @param h - hue | [h, s, l]
 * @param s - saturation
 * @param v - value
 * @returns
 */
export declare function hsv2rgb(h: number | number[], s?: number, v?: number): number[];
/**
 * Parse hsl/hsv/hwb color string
 * @param str - hsl/hsv/hwb color string
 * @returns - the parsed color components
 */
export declare function hueParse(str: string): RGBA | undefined;
/**
 * Rotate the hue of `color` by `degrees`.
 *
 * The other transforms — `lighten`, `darken`, `saturate`, `desaturate`, `alpha`,
 * `clearer`, `opaquer`, `negate`, `greyscale`, `mix`, and `clone` — are only
 * available as methods on `Color`.
 * @param color - the color
 * @param degrees - degrees to rotate
 */
export declare function rotate(color: RGBA, degrees: number): void;
/**
 * Return hsl(a) string from color components
 * @param color - the color
 * @return
 */
export declare function hslString(color: RGBA | undefined): string | undefined;
