/** * Color helpers for the color picker. * * culori performs every color-space conversion and string parse. The functions * here are thin adapters that translate between culori's normalized shape * (`{ mode, r/g/b: 0–1, alpha: 0–1 }`) and the integer/percentage shape the UI * works in (`ColorValue` with 0–255 channels, HSL/HSV in degrees/percent), plus * rounding and null-hue handling for greys. */ export declare const colorFormats: readonly ["hex", "rgb", "hsl", "hsb"]; export type ColorFormat = (typeof colorFormats)[number]; export interface ColorValue { r: number; g: number; b: number; a: number; } export interface HSVColorValue { h: number; s: number; v: number; a: number; } export declare function hexToRgb(hex: string, alpha?: number): ColorValue; export declare function isColorEqual(a: ColorValue, b: ColorValue): boolean; export declare function isHsvEqual(a: HSVColorValue, b: HSVColorValue): boolean; export declare function rgbToHex(color: ColorValue): string; export declare function rgbToHsv(color: ColorValue, fallbackHue?: number): HSVColorValue; export declare function hsvToRgb(hsv: HSVColorValue): ColorValue; export declare function rgbToHsl(color: ColorValue): { h: number; s: number; l: number; }; export declare function hslToRgb(hsl: { h: number; s: number; l: number; }, alpha?: number): ColorValue; export declare function colorToString(color: ColorValue, format?: ColorFormat): string; export declare function parseColorString(value: string): ColorValue | null; //# sourceMappingURL=color.d.ts.map