/** CSS color parsing — hex, rgb(a), hsl(a), transparent, and common named colors. */ export type RgbaColor = { r: number; g: number; b: number; a: number; }; /** * Parse a CSS color string into RGBA components. * Returns `null` when the format is not recognized. */ export declare function tryParseColor(color: string): RgbaColor | null; /** Parse color; unknown values fall back to opaque black (legacy behavior). */ export declare function parseColor(color: string): RgbaColor; /** Re-encode with a new alpha. Returns `null` if `color` cannot be parsed. */ export declare function colorWithAlpha(color: string, alpha: number): string | null; /** Linear RGB mix; falls back to `to` if either side cannot be parsed. */ export declare function mixColors(from: string, to: string, t: number): string; export declare function interpolateColor(from: string, to: string, t: number): string; /** True when the string looks like a concrete CSS color (not a semantic token). */ export declare function isCssColorString(color: string): boolean;