import type { IVChart } from '../../core/interface'; import type { IBasePlugin, IBasePluginService, MaybePromise } from '../base/interface'; export interface IVChartPlugin extends IBasePlugin { specKey?: string; onInit?: (service: T) => MaybePromise; } export interface IVChartPluginConstructor { readonly pluginType: 'vchart'; readonly specKey?: string; readonly type: string; new (): IVChartPlugin; } export interface IVChartPluginService extends IBasePluginService { globalInstance: IVChart; onInit?: () => MaybePromise; }