import type { RGB } from 'color-convert/conversions';
export declare const getContrastYIQ: (r: number, g: number, b: number) => number;
type ColorPair<T> = {
    background: T;
    foreground: T;
};
export type ColorContrast<T> = ColorPair<T> & {
    contrast: number;
};
export declare const calcColorContrast: (baseColor: RGB, contrastColor: RGB, ratio: number, dir?: number) => ColorContrast<RGB>;
export declare const getColorContrast: (baseColor: RGB, contrastColor: RGB, ratio: number, dir?: number) => ColorContrast<RGB>;
export declare const createContrastColorPair: (color: string | ColorPair<string>, contrastRatio?: number) => ColorContrast<string>;
export {};
