export * from '../core/echarts.js';
export * from './api.js';
export { ZRColor as Color, Payload, ECElementEvent, HighlightPayload, DownplayPayload, SelectChangedPayload } from '../util/types.js';
export { LinearGradientObject } from 'tvrender/lib/graphic/LinearGradient.js';
export { RadialGradientObject } from 'tvrender/lib/graphic/RadialGradient.js';
export { PatternObject, ImagePatternObject, SVGPatternObject } from 'tvrender/lib/graphic/Pattern.js';
export { ElementEvent } from 'tvrender/lib/Element.js';
import type { ComponentOption, ECBasicOption as EChartsCoreOption } from '../util/types.js';
import type { AxisPointerOption } from '../component/axisPointer/AxisPointerModel.js';
import type { XAXisOption, YAXisOption } from '../coord/cartesian/AxisModel.js';
import type { AngleAxisOption, RadiusAxisOption } from '../coord/polar/AxisModel.js';
import type { ParallelAxisOption } from '../coord/parallel/AxisModel.js';
export { EChartsType as ECharts } from '../core/echarts.js';
export { EChartsCoreOption };
declare type Dependencies = {
    grid: XAXisOption | YAXisOption | AxisPointerOption;
    polar: AngleAxisOption | RadiusAxisOption;
    parallel: ParallelAxisOption;
};
declare type DependenciesKeys = keyof Dependencies & string;
declare type Arrayable<T> = T | T[];
declare type GetMainType<OptionUnion extends ComponentOption> = Exclude<OptionUnion['mainType'], undefined>;
declare type ExtractComponentOption<OptionUnion, ExtractMainType> = OptionUnion extends {
    mainType?: ExtractMainType;
} ? OptionUnion : never;
declare type GetDependency<DependencyOption extends ComponentOption> = {
    [key in GetMainType<DependencyOption>]?: Arrayable<ExtractComponentOption<DependencyOption, key>>;
};
declare type GetDependencies<MainType extends string> = GetDependency<Dependencies[Extract<MainType, DependenciesKeys>]>;
declare type ComposeUnitOption<OptionUnion extends ComponentOption> = CheckMainType<GetMainType<OptionUnion>> & Omit<EChartsCoreOption, 'baseOption' | 'options'> & {
    [key in GetMainType<OptionUnion>]?: Arrayable<ExtractComponentOption<OptionUnion, key>>;
} & GetDependencies<GetMainType<OptionUnion>>;
declare type CheckMainType<OptionUnionMainType extends string> = string extends OptionUnionMainType ? never : {};
export declare type ComposeOption<OptionUnion extends ComponentOption> = ComposeUnitOption<OptionUnion> & {
    baseOption?: ComposeUnitOption<OptionUnion>;
    options?: ComposeUnitOption<OptionUnion>[];
};
