import { ChartDef } from '@/services/data/tuples/chart-def/chart-def-types' ; import { ChartDataSet } from '@/services/data/tuples/chart-types' ; import { Report } from '@/services/data/tuples/report-types' ; export type ChartEChartOptions = any ; export type ChartOptions = ChartEChartOptions ; export interface ChartUtils { getDef ( ) : ChartDef ; shouldHasIndicator ( ) : boolean ; getMaxIndicatorCount ( ) : number ; canReduceIndicators ( report ) : boolean ; canAppendIndicators ( report ) : boolean ; defendIndicatorMinCount ( report ) : void ; defendIndicatorMaxCount ( report ) : void ; shouldHasDimension ( ) : boolean ; getMaxDimensionCount ( ) : number ; canAppendDimensions ( report ) : boolean ; canReduceDimensions ( report ) : boolean ; defendDimensionMinCount ( report ) : void ; defendDimensionMaxCount ( report ) : void ; shouldHasTruncation ( ) : boolean ; shouldHasFunnel ( ) : boolean ; defend ( report ) : void ; validate ( report ) : boolean | string ; buildOptions ( report , dataset ) : Promise < ChartOptions > ; }