import { AllowedComponentProps, ComponentCustomProps, ComponentOptionsMixin, ComponentPropsOptions, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, ExtractPropTypes, InjectionKey, MaybeRefOrGetter, PropType, Slot, SlotsType, VNodeProps } from "vue";
import { AxisBreakChangedEvent, DownplayPayload, ECElementEvent, ElementEvent, HighlightPayload, Payload, SelectChangedEvent, SetOptionOpts, init } from "echarts/core";
import { TooltipComponentFormatterCallbackParams } from "echarts";
//#region src/types.d.ts
type EventProps<T> = { [K in string & keyof T as `on${Capitalize<K>}`]?: T[K] extends ((...args: infer P) => unknown) ? (...args: P) => any : never; };
type Component<Props extends ComponentPropsOptions, Bindings, Events extends EmitsOptions, Slots extends SlotsType = Record<never, never>> = DefineComponent<Props, Bindings, Record<never, never>, Record<never, never>, Record<never, never>, ComponentOptionsMixin, ComponentOptionsMixin, Events, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<Props>> & Readonly<EventProps<Events>>, ExtractDefaultPropTypes<Props>, Slots>;
type Injection<T> = MaybeRefOrGetter<T | null | undefined>;
type InitParameters = Parameters<typeof init>;
type Theme = NonNullable<InitParameters[1]>;
type ThemeInjection = Injection<Theme>;
type InitOptions = NonNullable<InitParameters[2]>;
type InitOptionsInjection = Injection<InitOptions>;
type UpdateOptions = SetOptionOpts;
type UpdateOptionsInjection = Injection<UpdateOptions>;
type EChartsType = ReturnType<typeof init>;
type SetOptionType = EChartsType["setOption"];
type Option = Parameters<SetOptionType>[0];
type AutoResize = boolean | {
  throttle?: number;
  onResize?: () => void;
};
type FontStyle = "normal" | "italic" | "oblique";
type FontWeight = "normal" | "bold" | "bolder" | "lighter" | number;
type LoadingOptions = {
  [key: string]: unknown;
  text?: string;
  textColor?: string;
  fontSize?: number;
  fontWeight?: FontWeight;
  fontStyle?: FontStyle;
  fontFamily?: string;
  maskColor?: string;
  showSpinner?: boolean;
  color?: string;
  spinnerRadius?: number;
  lineWidth?: number;
  zlevel?: number;
};
type LoadingOptionsInjection = Injection<LoadingOptions>;
type ChartMouseEventName = "click" | "dblclick" | "mouseover" | "mouseout" | "mousemove" | "mousedown" | "mouseup" | "globalout" | "contextmenu";
type MouseEventAlias = "dblClick" | "contextMenu" | "globalOut" | `mouse${Capitalize<"out" | "over" | "up" | "down" | "move">}`;
type ElementEventAlias = MouseEventAlias | "mouseWheel" | `drag${Capitalize<"start" | "end" | "enter" | "leave" | "over">}`;
type ZRenderEventName = `zr:${ElementEvent["type"] | ElementEventAlias}`;
type OtherEventName = "legendselectchanged" | "legendselected" | "legendunselected" | "legendselectall" | "legendinverseselect" | "legendscroll" | "datazoom" | "datarangeselected" | `${"graph" | "geo" | "tree" | "sankey"}roam` | `${"focus" | "unfocus"}nodeadjacency` | "dragnode" | "treeexpandandcollapse" | "timelinechanged" | "timelineplaychanged" | "restore" | "dataviewchanged" | "magictypechanged" | "geoselectchanged" | "geoselected" | "geounselected" | "axisareaselected" | "brush" | "brushend" | "brushselected" | `${"show" | "hide"}tip` | "updateaxispointer" | "globalcursortaken";
type OtherEventAlias = `legend${Capitalize<"selectChanged" | "selected" | "unselected" | "selectAll" | "inverseSelect" | "scroll">}` | `data${Capitalize<"zoom" | "rangeSelected" | "viewChanged">}` | `${"graph" | "geo" | "tree" | "sankey"}Roam` | `${"focus" | "unfocus"}NodeAdjacency` | "dragNode" | "treeExpandAndCollapse" | `timeline${Capitalize<"changed" | "playChanged">}` | "magicTypeChanged" | `geo${Capitalize<"selectChanged" | "selected" | "unselected">}` | "axisAreaSelected" | `brush${Capitalize<"end" | "selected">}` | `${"show" | "hide"}Tip` | "updateAxisPointer" | "globalCursorTaken";
type MouseEmits = { [key in ChartMouseEventName | MouseEventAlias]: (params: ECElementEvent) => void; };
type ZRenderEmits = { [key in ZRenderEventName]: (params: ElementEvent) => void; };
type NativeEmits = { [key in `native:${string}`]: (params: any) => void; };
type OtherEmits = { [key in OtherEventName | OtherEventAlias]: (params: Payload) => void; };
type WithOnce<T> = T & { [key in keyof T as `${key & string}Once`]: T[key]; };
type ChartEmits = MouseEmits & OtherEmits & {
  highlight: (params: HighlightPayload) => void;
  downplay: (params: DownplayPayload) => void;
  selectchanged: (params: SelectChangedEvent) => void;
  selectChanged: (params: SelectChangedEvent) => void;
  axisbreakchanged: (params: AxisBreakChangedEvent) => void;
  axisBreakChanged: (params: AxisBreakChangedEvent) => void;
  updated: () => void;
  rendered: (params: {
    elapsedTime: number;
  }) => void;
  finished: () => void;
} & ZRenderEmits;
type Emits = WithOnce<ChartEmits> & NativeEmits;
//#endregion
//#region src/composables/api.d.ts
declare const METHOD_NAMES: readonly ["getWidth", "getHeight", "getDom", "getZr", "getId", "getOption", "isSSR", "getDevicePixelRatio", "resize", "makeActionFromEvent", "dispatchAction", "updateLabelLayout", "convertToPixel", "convertToLayout", "convertFromPixel", "containPixel", "getVisual", "renderToCanvas", "renderToSVGString", "getSvgDataURL", "getDataURL", "getConnectedDataURL", "appendData", "clear"];
type MethodName = (typeof METHOD_NAMES)[number];
type PublicMethods = Pick<EChartsType, MethodName | "dispose" | "isDisposed">;
//#endregion
//#region src/composables/slot.d.ts
type Slots = SlotsType<Record<"tooltip" | `tooltip-${string}`, TooltipComponentFormatterCallbackParams> & Record<"dataView" | `dataView-${string}`, Option> & VChartSlotsExtension>;
//#endregion
//#region src/composables/loading.d.ts
declare const LOADING_OPTIONS_KEY: InjectionKey<LoadingOptionsInjection>;
//#endregion
//#region src/ECharts.d.ts
declare const THEME_KEY: InjectionKey<ThemeInjection>;
declare const INIT_OPTIONS_KEY: InjectionKey<InitOptionsInjection>;
declare const UPDATE_OPTIONS_KEY: InjectionKey<UpdateOptionsInjection>;
declare const chartProps: {
  loading: BooleanConstructor;
  loadingType: StringConstructor;
  loadingOptions: PropType<LoadingOptions>;
  autoresize: PropType<AutoResize>;
  option: PropType<Option>;
  theme: {
    type: PropType<Theme>;
  };
  initOptions: PropType<InitOptions>;
  updateOptions: PropType<UpdateOptions>;
  group: StringConstructor;
  manualUpdate: BooleanConstructor;
};
type Exposed = {
  setOption: SetOptionType;
  readonly root: HTMLElement | undefined;
  readonly chart: EChartsType | undefined;
} & PublicMethods;
declare const ECharts: Component<typeof chartProps, Exposed, Emits, Slots>;
//#endregion
//#region src/index.d.ts
interface VChartSlotsExtension {
  graphic?: Slot;
}
//#endregion
export { THEME_KEY as a, Slots as c, ElementEventAlias as d, FontStyle as f, WithOnce as h, INIT_OPTIONS_KEY as i, AutoResize as l, LoadingOptions as m, ECharts as n, UPDATE_OPTIONS_KEY as o, FontWeight as p, Exposed as r, LOADING_OPTIONS_KEY as s, VChartSlotsExtension as t, Component as u };
//# sourceMappingURL=index-GjFScMW2.d.ts.map