import { Chart, View } from '@antv/g2'; import { Datum } from '@antv/g2/lib/interface'; import { Actions, ChartConfig, ChartOptions, Legends } from '../interfaces'; import '../utils/tools'; export declare const generateChart: (options: ChartOptions, config: ChartConfig) => Chart; /** * It seems the tooltip is invalid when it's set on View. * It should be set in Chart instance and it should be called behind create view. * @param chart * @param config * @returns */ export declare const fetchTooltip: (chart: Chart | View, config: ChartConfig) => Chart | View; export declare const fetchConfig: (chart: Chart | View, options: ChartOptions, config: ChartConfig) => Chart | View; export declare const fetchChartConfig: (chart: Chart, options: ChartOptions, config: ChartConfig) => Chart; export declare const fetchViewConfig: (chart: View, options: ChartOptions, config: ChartConfig) => View; export declare const renderChart: (options: ChartOptions, config: ChartConfig) => Chart; export declare class BaseChart implements Actions { instance: Chart | undefined; views: View[]; options: ChartOptions | undefined; config: ChartConfig | undefined; getAxisFields: () => string[]; render: (options: ChartOptions, config: ChartConfig) => void; defaultLegendBehavior: (legends: Legends) => void; legend: (legends: Legends) => void; update: (data: Datum[]) => void; clear: () => void; annotations: () => void; }