import { Color } from "three"; //#region src/color/conversions.d.ts /** OKLAB color: L (0..1 lightness), a (~-0.5..0.5 green-red), b (~-0.5..0.5 blue-yellow) */ interface Oklab { L: number; a: number; b: number; } /** OKLCH color: L (0..1 lightness), C (0..~0.37 chroma), h (0..360 hue degrees) */ interface Oklch { L: number; C: number; h: number; } /** Decode a gamma-encoded sRGB component (e.g. from CSS/hex) to linear. */ declare function srgbToLinear(c: number): number; /** Encode a linear component to gamma-encoded sRGB (e.g. for CSS/hex output). */ declare function linearToSrgb(c: number): number; /** Convert linear sRGB to OKLAB using Ottosson matrices. */ declare function linearRgbToOklab(r: number, g: number, b: number): Oklab; /** Convert OKLAB to linear sRGB using inverse Ottosson matrices. */ declare function oklabToLinearRgb(L: number, a: number, b: number): { r: number; g: number; b: number; }; /** Convert OKLAB (cartesian) to OKLCH (polar). Hue in degrees 0..360. */ declare function oklabToOklch(L: number, a: number, b: number): Oklch; /** Convert OKLCH (polar) to OKLAB (cartesian). Hue in degrees. */ declare function oklchToOklab(L: number, C: number, h: number): Oklab; /** Convert a Three.js Color to OKLAB. Components are working-space linear (the three.js default). */ declare function colorToOklab(color: Color): Oklab; /** Convert a Three.js Color to OKLCH. Components are working-space linear (the three.js default). */ declare function colorToOklch(color: Color): Oklch; /** * Convert OKLAB to a Three.js Color. Clamps to 0..1. * Writes working-space linear components via setRGB (no colorSpace arg), matching the three.js default. */ declare function oklabToColor(L: number, a: number, b: number, target?: Color): Color; /** Convert OKLCH to a Three.js Color. Hue in degrees. Clamps to 0..1. */ declare function oklchToColor(L: number, C: number, h: number, target?: Color): Color; //#endregion export { Oklab, Oklch, colorToOklab, colorToOklch, linearRgbToOklab, linearToSrgb, oklabToColor, oklabToLinearRgb, oklabToOklch, oklchToColor, oklchToOklab, srgbToLinear }; //# sourceMappingURL=conversions.d.ts.map