/**
 * Color Utilities for Widget Theme System
 * Handles color manipulation and auto light/dark detection
 */
/**
 * Parse hex color to RGB values
 */
export declare function hexToRgb(hex: string): {
    r: number;
    g: number;
    b: number;
} | null;
/**
 * Convert RGB to hex
 */
export declare function rgbToHex(r: number, g: number, b: number): string;
/**
 * Calculate relative luminance of a color (0-1)
 * Used to determine if a color is light or dark
 */
export declare function getLuminance(hex: string): number;
/**
 * Determine if a color is considered "light" (luminance > 0.5)
 */
export declare function isLightColor(hex: string): boolean;
/**
 * Lighten a color by a percentage
 */
export declare function lighten(hex: string, percent: number): string;
/**
 * Darken a color by a percentage
 */
export declare function darken(hex: string, percent: number): string;
/**
 * Create a color with alpha transparency
 */
export declare function withAlpha(hex: string, alpha: number): string;
/**
 * Get contrasting text color (black or white) for a background
 */
export declare function getContrastText(backgroundColor: string): string;
/**
 * Generate a complete color palette from an accent color for light mode
 */
export declare function generateLightPalette(accentColor: string): {
    accent: string;
    accentHover: string;
    accentSubtle: string;
    background: string;
    backgroundSubtle: string;
    backgroundMuted: string;
    text: string;
    textMuted: string;
    textSubtle: string;
    border: string;
    borderSubtle: string;
    userBubble: string;
    userBubbleText: string;
    assistantBubble: string;
    assistantBubbleText: string;
    inputBackground: string;
    inputBorder: string;
    inputBorderFocus: string;
    shadow: string;
};
/**
 * Generate a complete color palette from an accent color for dark mode
 */
export declare function generateDarkPalette(accentColor: string): {
    accent: string;
    accentHover: string;
    accentSubtle: string;
    background: string;
    backgroundSubtle: string;
    backgroundMuted: string;
    text: string;
    textMuted: string;
    textSubtle: string;
    border: string;
    borderSubtle: string;
    userBubble: string;
    userBubbleText: string;
    assistantBubble: string;
    assistantBubbleText: string;
    inputBackground: string;
    inputBorder: string;
    inputBorderFocus: string;
    shadow: string;
};
export type ColorPalette = ReturnType<typeof generateLightPalette>;
//# sourceMappingURL=colorUtils.d.ts.map