/** * Parsed color as normalized `[r, g, b, a]` floats in `[0, 1]`. */ export type RGBA = [number, number, number, number]; /** * Parse a CSS color string into normalized `[r, g, b, a]` floats. * * Fast paths handle `#rgb`/`#rgba`/`#rrggbb`/`#rrggbbaa` and `rgb()`/`rgba()`; * other forms (named colors, `hsl()`, …) resolve via a cached 1×1 canvas when a * DOM is available. Results are cached per input string and shared by identity, * so callers must treat the returned array as read-only. Unparseable input * yields opaque black `[0, 0, 0, 1]` regardless of DOM availability. * * @param css - A CSS color string, e.g. `'#38bdf8'` or `'rgba(0,0,0,.5)'`. * @returns The cached `[r, g, b, a]` tuple in `[0, 1]`. */ export declare function parseColorToRGBA(css: string): RGBA;