import type { TruncationMode } from '../../../typography/text-ellipsis/TextEllipsis.js'; import type { TextMeasurer } from '../../core/utils/text-measure.js'; import type { TreeMapRect } from '../types/treemap.js'; export interface TreeMapLabel { text: string; fontConfig: FontConfig; position: { x: number; y: number; }; } interface FontConfig { fontSize: number; fontWeight: number; lineHeight: number; } interface LabelsConfig { name: string; value: string; withValueOnly: boolean; textSize: 'auto' | number; truncationMode: TruncationMode; } /** * Builds the list of labels to render inside a tree-map node. * Delegates to either a value-only or a name+value layout based on `labelsConfig.withValueOnly`. * @param labelsConfig - display configuration including name, value, truncation mode, and text size. * @param treemapRect - bounding rectangle of the tree-map node. * @param textMeasurer - function used to measure rendered text width at a given font size. * @returns An array of `TreeMapLabel` objects ready for canvas rendering. */ export declare const buildLabels: (labelsConfig: LabelsConfig, treemapRect: TreeMapRect, textMeasurer: TextMeasurer) => TreeMapLabel[]; export {};