import { HexColor } from "./types.js"; /** * Get the contrast ratio between two HEX colors * * @param color1 The first color to compare * @param color2 The second color to compare * @returns */ export declare const getContrastFromHex: (color1: HexColor, color2: HexColor) => number; /** * Get the luminance value from a lightness value * * @param lightness The lightness value */ export declare const getLuminanceFromLightness: (lightness: number) => number; /** * Get the relative luminance from any valid css color * * @param color */ export declare const getLuminanceFromColor: (color: string) => number; /** * Get the HSLuv lightness from a HEX color * * @param hex The hex color */ export declare const getLightnessFromHex: (hex: HexColor) => number; /** * Converts a color to a HEX color * * @param color * @returns */ export declare const convertToHex: (color?: string) => HexColor; /** * Convert a color to a different format * * @param cssColor Any valid css color * @param format Color space/format supported here https://colorjs.io/docs/spaces */ export declare const convertColor: (cssColor: string, format: string) => string;