import { LooseObject } from '@antv/g-base'; import { Chart, View } from '@antv/g2'; import { Datum } from '@antv/g2/lib/interface'; import { BaseChart } from '../core/framework'; import { ChartConfig, ChartOptions, Legends, Shape } from '../interfaces'; export declare class Donut extends BaseChart { donutView: View | undefined; textView: View | undefined; options: ChartOptions | undefined; config: ChartConfig | undefined; totalCount: number; addText: (chart: Chart | View, data: LooseObject[], config: ChartConfig) => void; updateText: (textView: View, data: LooseObject[], config: ChartConfig) => void; update: (data: Datum[]) => void; render: (options: ChartOptions, config: ChartConfig) => {} | undefined; setTotal: (data: LooseObject[], donutCfg: Shape) => void; legend: (legends: Legends) => void; }