import { G2, Options as G2PlotConfig, Plot, TooltipOptions as G2PlotTooltipOptions } from '@antv/g2plot'; import { ReactNode } from 'react'; import { ChartRefOptions } from "../../utils/types/ChartRefOptions"; export declare type ContainerProps = { style?: React.CSSProperties; className?: string; onReady?: (chart: G2PlotConfig) => void; onEvent?: (chart: G2PlotConfig, event: G2.Event) => void; chartRef?: ChartRefOptions; } & React.RefAttributes; export declare type Tooltip = (Omit & { customContent?: (title: string, data: ITEM[]) => ReactNode | string | void; container?: ReactNode; }) | false; export declare type Options = Omit & { tooltip?: Tooltip; data?: any; yAxis?: G2PlotConfig['yAxis'] | Array; [key: string]: any; }; export declare type Base = Plot & { __proto__?: any; }; export declare function useChart(ChartClass: any, config: U): { chart: import("react").MutableRefObject; container: import("react").RefObject; };