import { AggregationColor } from './color'; import type { ColorGenInput, ColorValueType, HSBAColorType, TransformOffset } from './interface'; export declare const generateColor: (color: ColorGenInput | Exclude) => AggregationColor; export declare const getRoundNumber: (value: number) => number; export declare const getColorAlpha: (color: AggregationColor) => number; export declare const genHueColor: (color: AggregationColor, hue: number) => AggregationColor; export declare const genAlphaColor: (color: AggregationColor, alpha?: number) => AggregationColor; export declare const calculateColor: (props: { offset: TransformOffset; containerRef: React.RefObject; targetRef: React.RefObject; color: AggregationColor; type?: HSBAColorType; }) => AggregationColor; export declare const calcOffset: (color: AggregationColor, type?: HSBAColorType) => { x: number; y: number; }; /** * Get percent position color. e.g. [10%-#fff, 20%-#000], 15% => #888 */ export declare const getGradientPercentColor: (colors: { percent: number; color: string; }[], percent: number) => string; export declare function sortColors(colors: { percent: number; color: string; }[]): { percent: number; color: string; }[];