export declare class Emitter { static of(context?: any): Emitter; events: Record; listeners: Function[]; context: any; constructor(context?: any); on(event: string | object | Function, callback?: Function): this; off(event?: string, callback?: Function): this; once(event: string, callback: Function): this; emit(event?: any, ...args: any[]): this; } export { }