import { ColorGenerator } from '../../utils/color-generator.js'; import { Selection, BaseType } from 'd3-selection'; import { HierarchyRectangularNode } from 'd3-hierarchy'; export interface DonutDimensions { svg: Selection; width: number; height: number; containerWidth: number; radius: number; } export interface DonutTooltip { xPosition: number; yPosition: number; nodeName: string; nodeParents: Array; nodeCount: number; nodeColor: string; } export interface TreeNode { id: string; fieldName: string; fieldValue: string; size?: number; metricValue?: number; isOther: boolean; children?: Array; color?: string; } export interface SimpleNode { fieldName: string; fieldValue: string; } export interface DonutNode extends HierarchyRectangularNode { isSelected: boolean; innerRadius: number; outerRadius: number; startAngle: number; endAngle: number; } export interface ARLASDonutTooltip { title?: string; isShown?: boolean; isRightSide?: boolean; xPosition?: number; yPosition?: number; content?: Array; } export interface DonutTooltipContent { percentage?: string; value?: string; field?: string; function?: string; metric?: number; color?: string; } export declare class DonutUtils { static getNode(nodePath: Array, donutNodes: Array): DonutNode; static getNodeColor(d: DonutNode, donutNodeColorizer: ColorGenerator, keysToColors: Array<[string, string]>, colorsSaturationWeight: number): string; static getNodePathAsArray(n: DonutNode): Array<{ fieldName: string; fieldValue: string; }>; static getNodeToolipAsArray(n: DonutNode, donutNodeColorizer: ColorGenerator, keysToColors: Array<[string, string]>, colorsSaturationWeight: number): DonutTooltipContent[]; static getNodePathAsString(n: DonutNode): string; private static getHexColorFromString; }