/** * Gets a color that has good enough contrast against the background. * If white has enough contrast for WCAG AA, white will always be returned, * otherwise the color with the highest contrast (either desiredTextColor, white or black) is returned * * @param {string} backgroundColor valid CSS color, hsv color or qlik ARGB color * @param {string} desiredTextColor valid CSS color, hsv color or qlik ARGB color * @returns {desiredTextColor | '#FFFFFF' | '#000000'} */ export default function getContrastingColor(backgroundColor: string, desiredTextColor: string): string;