declare class PubSub { private subscribers; constructor(); /** * event to publish * @param type type of event * @param payload any object */ publish(type: string, payload: any): void; unsubscribe(type: string, id: string, contextName: string): void; unsubscribeAllWithEventType(type: string): void; subscribe(type: string, id: string | undefined, callback: Function, contextName: string, subscribeOnce: boolean): void; clearContext(contextName: string): void; } declare const _default: PubSub; export default _default;