/**
 * Color parsing + WCAG contrast.
 *
 * Accent colors are stored either as a preset name (resolved elsewhere) or as
 * a raw CSS color string. To validate contrast we need a real luminance, so we
 * parse both `#rgb`/`#rrggbb` and `oklch(L C H)` into LINEAR sRGB and apply the
 * WCAG relative-luminance + contrast-ratio formulas. Linear RGB is exactly what
 * the luminance formula wants, so the hex path linearizes gamma sRGB and the
 * oklch path (via OKLab→linear sRGB, per Björn Ottosson) is already linear.
 */
export interface LinearRgb {
    r: number;
    g: number;
    b: number;
}
/** Parse a supported color string (`#hex` or `oklch(...)`) into linear sRGB. */
export declare function parseColorToLinear(input: string): LinearRgb | null;
/** WCAG relative luminance from linear sRGB. */
export declare function relativeLuminance(rgb: LinearRgb): number;
/** WCAG contrast ratio (1..21) between two colors. Returns 0 if unparseable. */
export declare function contrastRatio(a: string, b: string): number;
/** True when the color string is a parseable `#hex` or `oklch(...)` value. */
export declare function isParseableColor(input: string): boolean;
//# sourceMappingURL=color.d.ts.map