/** Parse #rgb / #rrggbb / rgb() / hsl() into 0–255 channels; null for anything else. */ export declare function parseColor(input: string): [number, number, number] | null; /** Relative luminance (WCAG), 0–1. Unparseable colours count as mid-grey. */ export declare function luminance(color: string): number; export declare const DARK_INK = "#1E1A33"; export declare const LIGHT_INK = "#F7F5F2"; /** Face ink for a body colour: dark ink, or light ink on a dark body. */ export declare function autoInk(color: string): string; /** * A shade of a colour: `dl` moves the lightness (−1..1), `ds` the * saturation. Darker shades get a touch more saturation so they stay * rich instead of going grey, the way a painted surface falls into shadow. */ export declare function shade(color: string, dl: number, ds?: number): string;