import { graphic } from 'echarts'; export declare type ColorLike = string | [string, string]; export declare type ZColor = graphic.LinearGradient | string; /** * 颜色转换 * @param colors 字符串颜色 * @returns 符合 Echarts 的颜色值 */ export declare function getColorFromArray(colors: ColorLike[], direction?: [number, number, number, number]): ZColor[]; export declare function color2AColor(color: string, alpha?: number): string;