interface Rgb { r: number; g: number; b: number; } /** * Parses a CSS color string as returned by `getComputedStyle()` * (`rgb(r, g, b)` or `rgba(r, g, b, a)`) into its channel values. */ export declare function parseRgb(color: string): Rgb; /** WCAG relative luminance, 0 (black) to 1 (white). */ export declare function relativeLuminance({ r, g, b }: Rgb): number; /** * WCAG contrast ratio between two colors, each either a `getComputedStyle()` * color string or a pre-parsed { r, g, b }. Order doesn't matter — the * lighter color is always treated as the numerator, per spec. */ export declare function contrastRatio(a: string | Rgb, b: string | Rgb): number; export {};