/** * Retrieves the value of a CSS variable or returns a default value if the variable is not defined. * * @param {string} key - The name of the CSS variable to retrieve (e.g., `--variable-name`). * @param {string | number} defaultValue - The default value to return if the CSS variable is not defined. * @returns {string | number} - The value of the CSS variable or the provided default value. */ export declare function getCssVariable(key: string, defaultValue?: string | number): string | number; /** * Retrieves the value of a CSS variable or returns a default color if the variable is not defined. * * @param {string} key - The name of the CSS variable to retrieve (e.g., `--variable-name`). * @param {string} [defaultColor='#444'] - The default color to return if the CSS variable is not defined. * @returns {string} - The value of the CSS variable or the provided default color. */ export declare function getColor(key: string, defaultColor?: string): string; /** * Retrieves the grid color for the specified axis. * * @param {'x' | 'y'} axis - The axis for which to retrieve the grid color ('x' or 'y'). * @returns {string} - The grid color as a CSS value. */ export declare const getGridColor: (axis: "x" | "y") => string; /** * Retrieves the ticks color for the specified axis. * * @param {'x' | 'y'} axis - The axis for which to retrieve the ticks color ('x' or 'y'). * @returns {string} - The ticks color as a CSS value. */ export declare const getTicksColor: (axis: "x" | "y") => string; /** * Retrieves an array of colors based on CSS variables or fallback to default colors. * * @param {number} [length=14] - The number of colors to retrieve. * @param staticColors * @returns {string[]} - An array of color codes. */ export declare const getColors: (length?: number, staticColors?: string[]) => string[]; /** * Determines the appropriate text color (light or dark) based on the luminance of the given background color. * * @param {string} backgroundColor - The background color in hexadecimal (e.g., `#ffffff`) or RGB format (e.g., `rgb(255, 255, 255)`). * @returns {string} - The text color, either the dark color (`--chart-value-dark-color`) or the light color (`--chart-value-light-color`). */ export declare function getTextColor(backgroundColor: string): string; export declare function getCssColors(colors: string[]): string[]; export declare function isCssVar(value: string): boolean; export declare function extractCssVar(data: string): string; export declare function resolveColor(value: string | undefined, cssVar: string, fallback: string): string;