import type { NamedCSSColour, WCAG } from "./types"; /** * Calculates the contrast ratio between two colours. * Accepts CSS RGB colours (including percentage values), named CSS colours, or hexadecimal colours. * @param colour1 The first colour (e.g., `#ff0000`, `rgb(255,0,0)`, `rgb(100%, 0%, 0%)`, or `red`) * @param colour2 The second colour (e.g., `#00ff00`, `rgb(0,255,0)`, `rgb(0%, 100%, 0%)`, or `lime`) * @param standard The standard to evaluate the contrast ratio against, defaults to WCAG2.1 * @returns The contrast ratio between the two colours truncated to 3 decimal places */ export declare function getContrastRatio(colour1: string | NamedCSSColour, colour2: string | NamedCSSColour, standard: WCAG): number;