export interface LocalEvent { type: E; target?: any; } export declare type Callback = (e: E, ...params: any[]) => void; export declare abstract class EventBase> { private listeners; on(type: T, callback: Callback, self?: any): void; off(type: T, callback: Callback, self?: any): void; emit(event: E, ...params: any[]): void; }