export declare function toRGBA(color: string | { red: number; green: number; blue: number; alpha?: number; } | [number, number, number]): { red: number; green: number; blue: number; alpha: number; }; /** * Determine best text color for a background color * * Uses the WCAG contrast formula to mathematically determine whether black or white provides the most contrast * with the given color. */ export declare function shouldUseWhiteText(color: string | { red: number; green: number; blue: number; } | [number, number, number]): boolean;