/** * Cleans CSS property values by removing !important and trimming whitespace * This ensures that colors and other CSS values are valid and don't contain * CSS priority declarations that could cause issues in rendering. * * @param value - The CSS value to clean * @returns The cleaned CSS value without !important * * @example * cleanCSSValue("red !important") // => "red" * cleanCSSValue(" blue ") // => "blue" * cleanCSSValue("#ff0000 !IMPORTANT") // => "#ff0000" */ export declare const cleanCSSValue: (value: string) => string; export declare const parseCSSDeclarations: (input: string) => Array<{ property: string; value: string; }>; export declare const isValidCSSColor: (value: string) => boolean; export declare const resolveElementTextColor: (node: Element, fallbackColor?: string) => string | undefined; /** * Cleans an array of CSS style strings, removing !important from each value * This is useful for processing style arrays from Mermaid data structures. * * @param styles - Array of CSS style strings (e.g., ["fill:#fff !important", "stroke:#000"]) * @returns Array of cleaned CSS style strings * * @example * cleanCSSStyles(["fill:#fff !important", "stroke:#000"]) // => ["fill:#fff", "stroke:#000"] */ export declare const cleanCSSStyles: (styles: string[]) => string[];