/** * The color math the brand ramp needs, ported from colorjs.io (MIT) so the library does not * ship all of it: OKLCH, CIE Lab D50, sRGB and Display P3, plus CSS Color 4 gamut mapping. * Matrices and thresholds are colorjs.io's, so results match `colorjs.io/fn` to the hex digit. */ type Vector = [number, number, number]; /** Lightness, chroma, hue. A powerless hue is `null`, as in colorjs.io. */ export type Oklch = [number, number, number | null]; export declare const srgbToOklch: (rgb: Vector) => Oklch; export declare const p3ToOklch: (rgb: Vector) => Oklch; export declare function hexToSrgb(hex: string): Vector; export declare const hexToOklch: (hex: string) => Oklch; export declare function deltaEOK(a: Oklch, b: Oklch): number; /** Interpolates in CIE Lab, colorjs.io's default interpolation space. */ export declare function mixLab(a: Oklch, b: Oklch, amount: number): Oklch; export declare function srgbToHex(rgb: Vector, alpha?: number): string; export declare const oklchToHex: (color: Oklch) => string; export {}; //# sourceMappingURL=color.d.ts.map