import { type HEX } from 'color-convert/conversions'; import { type GridColor } from './GridTheme'; export type RGB = { r: number; g: number; b: number; }; export type Oklab = { L: number; a: number; b: number; }; /** * Darken the provided colour * @param color Color in hex format to convert (with #) * @param depth Depth to convert the color to * @param maxDepth Maximum depth. Defaults to 6 * @returns Darkened colour in hex format */ export declare function darkenForDepth(color: HEX, depth: number, maxDepth?: number): GridColor; /** * Convert a hex colour to an rgba with specified alpha * @param color Color in hex format to convert (with #) * @param alpha Alpha to apply to the color * @returns Color with the newly applied alpha in rgba format */ export declare function colorWithAlpha(color: HEX, alpha: number): GridColor; declare const _default: { colorWithAlpha: typeof colorWithAlpha; darkenForDepth: typeof darkenForDepth; linearSRGBToOklab: (color: RGB) => Oklab; OklabToLinearSRGB: (color: Oklab) => RGB; hexToRgb: (hex: string) => RGB; rgbToHex: (color: RGB) => string; lerpColor: (color1: Oklab, color2: Oklab, factor: number) => Oklab; }; export default _default; //# sourceMappingURL=GridColorUtils.d.ts.map