import { CanvasProps } from "@tarojs/components/types/Canvas"; import { EChartOption, EChartsLoadingOption, ECharts } from "echarts"; import { CSSProperties, MutableRefObject } from "react"; export type { EChartOption, ECharts as EChartsInstance, EChartsLoadingOption, } from "echarts"; export declare type Opts = { devicePixelRatio?: number | undefined; renderer?: string | undefined; width?: number | string | undefined; height?: number | string | undefined; }; export declare type EChartsProps = CanvasProps & { echarts: any; className?: string; style?: CSSProperties; option: EChartOption; theme?: string | Record; notMerge?: boolean; lazyUpdate?: boolean; showLoading?: boolean; loadingOption?: EChartsLoadingOption; opts?: Opts; onChartReady?: (instance: ECharts) => void; onEvents?: Record void>; isPage?: boolean; }; export declare type InitEchart = { devicePixelRatio: number | undefined; width: number | string | undefined; height: number | string | undefined; }; export declare type EchartsHandle = { canvasRef: Partial>; chartRef: Partial>; };