import type { Hsv } from './types'; export declare const MAXIMUM_COLORS = 5; type Rgb = [number, number, number]; /** Reads `#rgb`, `#rrggbb` (with optional alpha) and `rgb()`/`rgba()` into 0-1 channels. */ export declare const parseColor: (color: string) => Rgb | null; /** RGB channels from 0 to 1 as HSV, keeping full saturation and value so muted colors render true. */ export declare const rgbToHsv: ([r, g, b]: Rgb) => Hsv; /** CSS colors as the HSV the renderers read, at most five; colors that cannot be read are skipped. */ export declare const toHsvPalette: (colors: readonly string[]) => Hsv[]; /** Relative luminance of a CSS color, or null when it cannot be read. */ export declare const luminance: (color: string) => number | null; /** Used when neither the `colors` prop nor the theme gives a readable color. */ export declare const FALLBACK_COLOR = "#005fff"; /** * The theme a voice visualization reads from its root: the accent color (the root's `color`) as * a palette, empty when unreadable, and whether it sits on a dark backdrop (the root's * `text-decoration-color`, which carries the backdrop token and never paints). */ export declare const readVoiceTheme: (root: Element) => { dark: number; palette: Hsv[]; }; export {}; //# sourceMappingURL=palette.d.ts.map