import type BasePluginEvent from './BasePluginEvent'; import type { PluginEvent } from './PluginEvent'; import type { PluginEventType } from '../enum/PluginEventType'; import type { CompatiblePluginEventType } from '../compatibleEnum/PluginEventType'; /** * A type to get specify plugin event type from eventType parameter. * This type is a middle result and only used by PluginEventFromType type */ export declare type PluginEventFromTypeGeneric = E extends BasePluginEvent ? E : never; /** * A type to get specify plugin event type from eventType parameter. */ export declare type PluginEventFromType = PluginEventFromTypeGeneric; /** * A type to extract data part of a plugin event type. Data part is the plugin event without eventType field. * This type is a middle result and only used by PluginEventData type */ export declare type PluginEventDataGeneric = E extends BasePluginEvent ? Pick> : never; /** * A type to extract data part of a plugin event type. Data part is the plugin event without eventType field. */ export declare type PluginEventData = PluginEventDataGeneric;