import { ColorAccessor, ColorFunction } from '../types/accessor'; type RGBColor = { r: number; g: number; b: number; }; export declare const UnovisColorScale: import('d3-scale').ScaleOrdinal; /** Retrieves color from the data if provided; fallbacks to CSS variables if the index was passed */ export declare function getColor(d: T, accessorOrValue: ColorAccessor, index?: number, key?: string | boolean, // Todo: Remove (key === true) in Unovis 2.0. We have is only for backward compatibility, it used to be `dontFallbackToCssVar` options?: { dontFallbackToCssVar?: boolean; colorFn?: ColorFunction; }): string | null; export declare function hexToRgb(hex: string): RGBColor; export declare function rgbToBrightness(rgb: RGBColor): number; export declare function hexToBrightness(hex: string): number; export declare function getHexValue(s: string, context: HTMLElement | SVGElement): string; export declare function rgbaToRgb(rgba: string, backgroundColor?: string): RGBColor; /** * Makes a color brighter by a certain amount * @param inputColor - The color to brighten (hex, rgb, or rgba) * @param amount - Amount to brighten by (0-1) * @returns The brightened color in hex format */ export declare function brighter(inputColor: string, amount: number): string; export declare function isColorDark(color: string, threshold?: number): boolean; export {};