/** * ColorParser - Parse any color format to RGBA * * Supports: * - Hex: #ff0000, #f00, #ff0000ff, #f00f * - RGB/RGBA: rgb(255, 0, 0), rgba(255, 0, 0, 0.5) * - HSL/HSLA: hsl(0, 100%, 50%), hsla(0, 100%, 50%, 0.5) * - Named colors: red, coral, transparent * - CSS variables: var(--color), --color */ /** * Parse any color format to RGBA Float32Array * Returns [R, G, B, A] where RGB is 0-255 and A is 0-1 */ export declare function parseColor(color: string, element?: Element): Float32Array | null; /** * Convert RGBA Float32Array to CSS rgba() string */ export declare function rgbaToString(rgba: Float32Array): string; /** * Get current color value from element's computed style */ export declare function getCurrentColor(element: Element, property: string): Float32Array;