import { interpolateBrBG, interpolateRainbow } from 'd3-scale-chromatic';
export declare enum NxChromaticType {
    Single = "Single",// 单个颜色
    Sequential = "Sequential",// 渐变颜色序列
    Categorical = "Categorical"
}
export interface ColorScheme {
    group?: string;
    name: string;
    type: NxChromaticType;
    value: any;
}
export declare function getChromaticScale(name: string, domain: [number, number], reverse?: boolean): (t: number) => string;
export declare function rgb2hex(c: string): string;
export declare function getContrastYIQ(hexcolor: string): "black" | "white";
export declare const NX_COLOR_CHROMATIC = 1;
export declare const CHROMATICS: ({
    provide: number;
    useValue: {
        group: string;
        name: string;
        type: NxChromaticType;
        value: readonly string[];
    };
    multi: boolean;
} | {
    provide: number;
    useValue: {
        group: string;
        name: string;
        type: NxChromaticType;
        value: typeof interpolateBrBG;
    };
    multi: boolean;
} | {
    provide: number;
    useValue: {
        group: string;
        name: string;
        value: typeof interpolateRainbow;
        type?: undefined;
    };
    multi: boolean;
})[];
