import { ReactNode } from 'react'; import { Plot, Options as G2PlotConfig, Tooltip as G2PlotTooltip } from '@antv/g2plot'; export interface ContainerProps { style?: React.CSSProperties; className?: string; loading?: boolean; loadingTemplate?: React.ReactElement; errorTemplate?: (e: Error) => React.ReactNode; } export interface Tooltip extends Omit { customContent?: (title: string, data: any[]) => ReactNode | string | void; container?: ReactNode; } export interface Options extends Omit { tooltip?: boolean | Tooltip; data?: any; yAxis?: G2PlotConfig['yAxis'] | G2PlotConfig['yAxis'][]; [key: string]: any; } export interface Base extends Plot { __proto__?: any; } export default function useInit(ChartClass: any, config: U): { chart: import("react").MutableRefObject; container: import("react").RefObject; };