import type { ViewProps } from '@tarojs/components';
import type { ECharts } from 'echarts';
import { DatasetComponent, LegendComponentOption, TitleComponentOption, TooltipComponentOption } from 'echarts/components';
import React from 'react';
/**
 * @internal
 */
export declare const commonEchartsComponents: (typeof DatasetComponent)[];
/**
 * @public
 */
export interface ICommonCompProps<Option> extends ViewProps {
    echarts: any;
    /**
     * 所有图表组件的 option
     * {@see https://echarts.apache.org/zh/option.html}
     */
    option?: Option;
    /**
     * 标题。对应 option.title
     * {@see https://echarts.apache.org/zh/option.html#title}
     */
    title?: TitleComponentOption;
    /**
     * 图例。对应 option.legend
     * {@see https://echarts.apache.org/zh/option.html#legend}
     */
    legend?: LegendComponentOption;
    /**
     * 提示框。对应 option.tooltip
     * {@see https://echarts.apache.org/zh/option.html#tooltip}
     */
    tooltip?: TooltipComponentOption;
    /**
     * 数据集。当只需要渲染简单的图表时，传此字段即可。
     * NOTE: 目前从官网文档观察，貌似只适合以下几种图表：Bar,Line,Pie
     * 对应 echarts option 中的 dataset.source
     * {@see https://echarts.apache.org/handbook/zh/concepts/dataset}
     */
    datasetSource?: Array<string | number | Record<string, any>>;
    /**
     * chart 实例初始化回调
     */
    onChartInit?: (chart: ECharts) => void;
}
/**
 * @internal
 *
 * @param type - 图表类型
 * @returns
 */
export declare function defineComponent<Option, PropsType extends ICommonCompProps<Option> = ICommonCompProps<Option>>(type?: string, customOption?: Option | ((props: PropsType) => Option)): React.FC<PropsType>;
//# sourceMappingURL=comp-factory-taro.d.ts.map