import { EventCallback, EventHash, EventKey, EventMap, EventTriggerParams } from "./types"; import ComponentEvent from "./ComponentEvent"; declare class Component { static VERSION: string; private _eventHandler; constructor(); trigger>(event: ComponentEvent & T[K]): this; trigger>(event: K, ...params: EventTriggerParams): this; once>(eventName: K, handlerToAttach: EventCallback): this; once(eventHash: EventHash): this; hasOn>(eventName: K): boolean; on>(eventName: K, handlerToAttach: EventCallback): this; on(eventHash: EventHash): this; off(eventHash?: EventHash): this; off>(eventName: K, handlerToDetach?: EventCallback): this; } export default Component;