import EventEmitter = require('tiny-emitter');
import {HashMap} from "../typings/common";

type EventHandler = {
    fn: Function;
    ctx?: any;
};

declare class EventBusClass extends EventEmitter {
    e: HashMap<EventHandler[]>;
}

declare const EventBus: EventBusClass;

export default EventBus;