/**
 * Color utility functions for canvas renderers
 */
export interface RgbColor {
    r: number;
    g: number;
    b: number;
}
/**
 * Converts a hex color string to RGB values
 * @param hex - Hex color string (with or without #, e.g., "#ff0000", "ff0000", "#f00", "f00")
 * @returns RGB color object with r, g, b values (0-255)
 * @throws Error if hex string is invalid
 */
export declare function hexToRgb(hex: string): RgbColor;
/**
 * Normalizes a color value to RGB format
 * @param color - Either an RGB object or hex string
 * @returns RGB color object with r, g, b values (0-255)
 */
export declare function normalizeColor(color: RgbColor | string): RgbColor;
/**
 * Converts RGB values to a CSS-compatible rgb() string
 * @param color - RGB color object or hex string
 * @returns CSS rgb() string, e.g., "rgb(255,0,0)"
 */
export declare function toRgbString(color: RgbColor | string): string;
/**
 * Converts RGB values to hex string
 * @param color - RGB color object
 * @returns Hex color string with # prefix, e.g., "#ff0000"
 */
export declare function rgbToHex(color: RgbColor): string;
//# sourceMappingURL=color-utils.d.ts.map