import type { CategoricalPalette } from '../palettes/types'; import type { PaletteOptions, STDPaletteOptions } from '../spec/element/palette'; import type { ElementData } from '../types/data'; /** * 解析色板配置 * * Parse palette options * @param palette - 色板配置 | PaletteOptions options * @returns 标准色板配置 | Standard palette options */ export declare function parsePalette(palette?: PaletteOptions): STDPaletteOptions | undefined; /** * 根据色板分配颜色 * * Assign colors according to the palette * @param data - 元素数据 | Element data * @param palette - 色板配置 | PaletteOptions options * @returns 元素颜色 | Element color * @remarks * 返回值结果是一个以元素 id 为 key,颜色值为 value 的对象 * * The return value is an object with element id as key and color value as value */ export declare function assignColorByPalette(data: ElementData, palette?: STDPaletteOptions): Record | undefined; /** * 获取离散色板配色 * * Get discrete palette colors * @param colorPalette - 色板名或着颜色数组 | Palette name or color array * @returns 色板上具体颜色 | Specific color on the palette */ export declare function getPaletteColors(colorPalette?: string | CategoricalPalette): CategoricalPalette | undefined;