import { Oklch } from "./conversions.js"; //#region src/color/gamut.d.ts /** * Check if an OKLCH color is within the sRGB gamut. * Tests whether converting to linear RGB produces values in [0, 1]. */ declare function isInGamut(L: number, C: number, h: number, epsilon?: number): boolean; /** * Map an OKLCH color to the sRGB gamut by reducing chroma while * preserving lightness and hue. Uses binary search on chroma * (CSS Color Level 4 recommended approach). */ declare function gamutMapOklch(L: number, C: number, h: number): Oklch; /** * Quick clamp OKLCH values to valid ranges. * Lightness to [0, 1], chroma to [0, max]. Not perceptually optimal. */ declare function clampOklch(L: number, C: number, h: number): Oklch; //#endregion export { clampOklch, gamutMapOklch, isInGamut }; //# sourceMappingURL=gamut.d.ts.map