import { Theme } from '../types'; export declare const COLOR_TYPES: string[]; /** * 获取颜色相关的属性 * * @param {object} props */ export declare const cloneColorProps: (props: object) => {}; /** * 获取排除掉颜色相关属性的属性对象 * * @param {object} props */ export declare const extraColorProps: (props: object) => { color: string; }; /** * 获取props中是否不包含颜色类型 */ export declare function isEmptyOfColorType(props: { color: string | boolean; colorType: string; }): boolean; /** * 获取主题中的颜色 * * @param {*} props */ export declare function getColorFromTheme(props: { color?: string; disabled?: boolean; theme?: Theme; }, defaultColor?: string): string; export declare const colorCss: (props: { color?: string; }, defaultColor?: string) => import("styled-components").InterpolationValue[]; /** * 获取两个颜色之间的对比度。 * * 公式: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests * * @param {string} foreground * - 颜色值,比如: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @param {string} background * - 颜色值,比如: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla() * @returns {number} 0 - 21之间的对比度。 */ export declare function getContrastRatio(foreground: string, background: string): number;