/**
 * @packageDocumentation
 * @module utils
 */
import type { RGBA } from './color.cjs';
/**
 * Convert rgb to oklch
 * @param color - the color
 * @returns - [L, C, H] where L is [0..1], C >= 0 and H is in degrees [0..360]
 */
export declare function rgb2oklch(color: RGBA): number[];
/**
 * Convert oklch to rgb. Out-of-gamut results are clipped to sRGB, matching
 * what browsers draw on a canvas (no CSS gamut-mapping / chroma reduction).
 * @param l - lightness | [l, c, h]
 * @param c - chroma
 * @param h - hue in degrees
 * @returns - [r, g, b] bytes
 */
export declare function oklch2rgb(l: number | number[], c?: number, h?: number): number[];
/**
 * Parse oklch(a) color string
 * @param str - the oklch string
 * @returns - the parsed color
 */
export declare function oklchParse(str: string): RGBA | undefined;
/**
 * Return oklch string from color
 * @param color - the color
 */
export declare function oklchString(color: RGBA | undefined): string | undefined;
