/**
 * 图表组件 TypeScript 声明
 * 提供更好的类型提示
 */

import type { DefineComponent } from 'vue'

/** BaseChart 组件 */
export interface BaseChartProps {
  option: any
  height?: string
  autoResize?: boolean
  loading?: boolean
  theme?: string | object
}

export interface BaseChartEmits {
  ready: (chart: any) => void
  click: (params: any) => void
}

declare const BaseChart: DefineComponent<BaseChartProps, BaseChartEmits>
export default BaseChart
