/// <reference types="react" />
import { Plot, PlotOptions } from '@antv/l7plot';
declare type L7PlotCtor<O extends PlotOptions, P extends Plot<O>> = new (container: string | HTMLElement, options: O) => P;
export declare type L7PlotConfig<O extends PlotOptions, P extends Plot<O>> = O & {
    /** 图表渲染完成回调 */
    onReady?: (chart: P) => void;
};
export default function useL7Plot<O extends PlotOptions, P extends Plot<O>, C extends L7PlotConfig<O, P> = L7PlotConfig<O, P>>(Ctor: L7PlotCtor<O, P>, config: C): {
    plotRef: import("react").MutableRefObject<P>;
    containerRef: import("react").MutableRefObject<HTMLDivElement>;
};
export {};
