export default class EventBus { private listeners; private getEventMap; on: (event: T, listener: Function, { once }?: { once?: boolean; }) => this; once: (event: T, listener: Function, config?: {}) => this; off: (event: T, listener: Function) => this; emit: (event: T, ...args: any[]) => void; }