import type { TreemapAdditionalTooltipField, TreemapDataColorValue, TreemapDataColumn, TreemapInputData, TreemapNodeData } from './treemapTypes'; export type { TreemapDataColorValue } from './treemapTypes'; export interface RangeEntry { from?: number; to?: number; value: string; } export interface MatchEntry { match: string; value: string; } export interface GradientConfig { colors: string[]; stops?: number[]; } export interface DataColorLegendConfig { type: 'gradient' | 'matchValue' | 'rangeValue'; gradient?: GradientConfig; ranges?: RangeEntry[]; matches?: MatchEntry[]; minVal?: number; maxVal?: number; } export interface MatchLegendItem { label: string; color: string; } export interface BuildTreemapDataColorMapOptions { dataColorValues?: TreemapDataColorValue[]; useComputedValuesForDataColors?: boolean; } interface OptionSchemaDefaults { [optionName: string]: { default?: unknown; } | undefined; } export type TreemapPopoverPlacement = 'above' | 'below' | 'left' | 'right'; export declare const getTreemapThemeColors: (themeFunc: unknown) => Record; export declare const getFieldNames: (fields: unknown) => string[]; export declare const normalizeTreemapOptions: (options: Record) => Record; export declare const areDataColorValuesUsingValueField: ({ options, optionDefaults, value, dataColorValues, }: { options: Record | undefined; optionDefaults: OptionSchemaDefaults; value: unknown; dataColorValues: unknown; }) => boolean; export declare const resolveAdditionalTooltipFieldValues: ({ columns, fieldNames, additionalTooltipFields, }: { columns: unknown[] | undefined; fieldNames: string[]; additionalTooltipFields: unknown; }) => TreemapAdditionalTooltipField[]; export declare const getZoomPathForNode: (node: TreemapNodeData, rootNode: TreemapNodeData | null) => TreemapNodeData[]; /** * Replaces a drill path's stale nodes with nodes from a rebuilt tree. * Returns Overview when any breadcrumb no longer exists in the source hierarchy. */ export declare const reconcileTreemapZoomPath: (zoomPath: TreemapNodeData[], rootNode: TreemapNodeData | null) => TreemapNodeData[]; export declare const limitTreemapInputData: (data: TreemapInputData, resultLimit: number | undefined) => TreemapInputData; export declare const hasParentValues: (parent: TreemapDataColumn | undefined) => boolean; export declare const getTreemapLegendHeight: (legendElement: HTMLDivElement, minimumHeight: number) => number; export declare const formatTreemapValue: (value: number) => string; export declare const formatRangeLabel: (entry: RangeEntry) => string; export declare const getRangeEntryKey: (entry: RangeEntry) => string; export declare const getMatchItemKey: ({ color, label }: MatchLegendItem) => string; /** Deduplicate match entries by color, grouping match names. */ export declare const deduplicateMatches: (matches: MatchEntry[]) => MatchLegendItem[]; export declare const getGradientCss: (colors: string[]) => string; export declare const getAdaptiveNameFontSize: (cellHeight: number) => number; export declare const getAdaptiveValueFontSize: (nameFontSize: number) => number; export declare const hasSpaceForTreemapLabel: (cellWidth: number, cellHeight: number, minLabelWidth?: number, minLabelHeight?: number) => boolean; export declare const getTreemapPopoverPlacement: (anchorElement: SVGElement | HTMLElement | null | undefined, containerWidth: number, edgeThreshold?: number, defaultPlacement?: TreemapPopoverPlacement) => TreemapPopoverPlacement; export declare const formatTooltipFieldValue: (fieldValue: unknown) => string; export declare const buildTreemapDataColorMap: (rootNode: TreemapNodeData | null | undefined, dataColors: string[] | undefined, dataColorConfig?: DataColorLegendConfig, options?: BuildTreemapDataColorMapOptions) => Map | undefined; export declare const enrichTreemapDataColorConfig: (dataColorConfig: DataColorLegendConfig | undefined, rootNode: TreemapNodeData | null | undefined, options?: BuildTreemapDataColorMapOptions) => DataColorLegendConfig | undefined; export declare const getSortedPositiveTreemapChildren: (currentNode: TreemapNodeData | null | undefined) => TreemapNodeData[]; //# sourceMappingURL=treemapUtils.d.ts.map