import type { ConvertibleUnit, FormatOptions, Unit } from '@dynatrace-sdk/units'; import { type TreeMapLeafNode } from './treemap.js'; import type { LegendItem } from '../../core/components/legend/categorical/types/legend.js'; import { ColorToken } from '../../core/types/color-palette.js'; import type { Formatter } from '../../core/types/formatter.js'; export interface InternalTreeMapNode { id: string; value: number; name: string; formattedValue?: string; children?: InternalTreeMapNode[]; metadId?: string; color?: ColorToken; highlighted?: boolean; aggregatedNodes?: string[]; } type LegendColorMapValue = { color: ColorToken; value?: number; }; export type CategoricalLegendColorMap = Map; export type RangeLegendColorMap = Map, LegendColorMapValue>; export type LegendColorMap = CategoricalLegendColorMap | RangeLegendColorMap; export interface InternalTreeMapData { tree: InternalTreeMapNode; unit?: string; } export interface ColoredInternalTreeMapData { data: InternalTreeMapData; legendColorMap: LegendColorMap; } export interface TreeMapSlots { tooltip?: boolean; } export interface TreeMapCSVEntry extends TreeMapLeafNode { parent: string; } export type HighlightingMap = Record>; export type TreeMapFormatter = Formatter | FormatOptions; export type TreeMapCategoricalLegendItem = LegendItem & { value?: number; }; export {};