export interface BusCache { [busName: string]: Function[]; } export declare class Bus { private _busId; private _pool; register(callback: Function, name?: string): string; fire(name: string, ...args: any[]): any[]; has(name: string, callback?: Function): boolean; remove(name: string, callback?: Function): void; clear(): void; } declare const bus: Bus; export default bus;