/** Colour conversion helpers for the custom colour picker. */ export type RGB = [number, number, number]; /** Hue 0–360, saturation 0–1, value 0–1. */ export type HSV = [number, number, number]; /** Parse a #RGB or #RRGGBB string to an RGB triple, or null if invalid. */ export declare function hexToRgb(hex: string): RGB | null; /** Format an RGB triple (0–255) as an uppercase #RRGGBB string. */ export declare function rgbToHex([r, g, b]: RGB): string; /** RGB (0–255) → HSV (h 0–360, s/v 0–1). */ export declare function rgbToHsv([r, g, b]: RGB): HSV; /** HSV (h 0–360, s/v 0–1) → RGB (0–255). */ export declare function hsvToRgb([h, s, v]: HSV): RGB; export declare function hexToHsv(hex: string): HSV | null; export declare function hsvToHex(hsv: HSV): string; /** * Resolve a CSS custom property (default `--sfx-an-primary`) to a concrete * `#RRGGBB` colour usable by the canvas and the colour picker. Reads the * computed token value from the host (so inherited theme overrides are picked * up), then normalises any form (hex / oklch / color-mix / rgb) to hex via a * probe rendered on `document.body`. Uses the CSSOM only (CSP-safe). Returns '' * when unavailable/unset. */ export declare function resolveThemeColor(host: Element, prop?: string): string; //# sourceMappingURL=color.d.ts.map