import { NodeAutocompletion } from "./autocompletions"; import { IndicatorDimension } from "./indicators"; export interface Chart extends ChartNodeBase { data?: ChartData; type: ChartNodeType.Chart; } export interface ChartBasemap { path: string; topoJsonField: string; } export interface ChartData { basemap: ChartBasemap; breaks: number[]; colorInterpolatorName: string; colors: string[]; discretizationMethod: string; indicator: ChartIndicator; labels: { [key: string]: string; }; maxValue: number; minValue: number; reverseColors: boolean; values: { [key: string]: number; }; } export interface ChartGroup extends ChartNodeBase { childrenAutocompletion?: NodeAutocompletion[]; type: ChartNodeType.Group; } export interface ChartIndicator { dimension: IndicatorDimension; path: string; } export declare type ChartNode = Chart | ChartGroup; export interface ChartNodeBase { description?: string; name: string; path: string; type: ChartNodeType; } export declare enum ChartNodeType { Chart = "CHART", Group = "GROUP" }