/**
 * Color utility functions for widget theming
 */
/**
 * Converts hex color to RGB
 */
export declare function hexToRgb(hex: string): {
    r: number;
    g: number;
    b: number;
} | null;
/**
 * Gets a contrasting color (white or black) based on the background color
 */
export declare function getContrastingColor(color: string): string;
/**
 * Adds opacity to a color
 * Supports hex colors (with or without #) and rgb/rgba strings
 */
export declare function addOpacity(color: string, opacity: number): string;
/**
 * Darkens a color by a specified amount (0-1)
 */
export declare function darkenColor(color: string, amount: number): string;
/**
 * Lightens a color by a specified amount (0-1)
 */
export declare function lightenColor(color: string, amount: number): string;
/**
 * Extracts the first color from a gradient string, or returns the color as-is
 */
export declare function extractColorFromGradient(color: string): string;
export declare const formatMessageTime: (date: Date | undefined) => string;
export declare const getModeDisplayName: (mode: "show" | "tell" | "do") => string;
export declare const getModeDescription: (mode: "show" | "tell" | "do") => string;
//# sourceMappingURL=format.d.ts.map