/** * Check if a color is a valid hex color */ export declare function isHexColor(color: string): boolean; /** * Check if a color is a valid RGB/RGBA color */ export declare function isRgbColor(color: string): boolean; /** * Convert hex color to RGB */ export declare function hexToRgb(hex: string): { r: number; g: number; b: number; } | null; /** * Get animation duration in CSS format */ export declare function getAnimationDuration(speed?: 'slow' | 'normal' | 'fast' | number): string; /** * Normalize size value to CSS string * Supports size presets ('xs', 'sm', 'md', 'lg', 'xl'), numeric values, or CSS strings */ export declare function normalizeSize(size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number | string): string; /** * Safely parse size to number with fallback */ export declare function parseSizeToNumber(size: number | string | undefined, fallback: number): number; /** * Calculate relative luminance of a color (0-1 scale) * Used for determining if text should be light or dark for contrast */ export declare function getColorLuminance(color: string): number; /** * Get contrast color (black or white) based on background luminance */ export declare function getContrastColor(backgroundColor: string): string; /** * Parse an animation duration string (e.g. "1s", "500ms", "0.01ms") to milliseconds. * Handles: "1s", "2s", "0.5s", "500ms", "0.01ms", or bare numbers. */ export declare function parseDurationMs(duration: string): number; //# sourceMappingURL=colors.d.ts.map