import type { ColorPalette, CustomColorPalette } from '../../core/types/color-palette.js'; import { ColorRuleProps } from '../../core/types/color-rule.js'; import type { CategoricalLegendColorMap, InternalTreeMapNode } from '../types/internal.js'; import type { NameAccessor } from '../types/treemap.js'; /** * Function to map clusters or nodes to color tokens * @param rootNode - InternalTreeMapNode * @param colorPalette - color palette * @param nameAccessor - targeted property on the leaf node * @param colorRules - color rules to apply to the legend * @returns - LegendColorMap */ export declare const getCategoricalLegendColorMap: (rootNode: InternalTreeMapNode, colorPalette: ColorPalette | CustomColorPalette, nameAccessor: NameAccessor | undefined, colorRules: ColorRuleProps[]) => CategoricalLegendColorMap;