declare type Listener = (params: any) => void; interface Subscribes { [type: string]: Listener[]; } export declare class EventBus { subscribes: Subscribes; addEventListener: (type: string, listener: (params: any) => void) => void; removeEventListener: (type: string, listener: (params: any) => void) => void; removeAll: (type?: string | undefined) => void; dispatchEvent: (type: string, params: any) => void; } export declare function useEventBus(ns?: string): { addEventListener: (type: string, listener: (params: any) => void) => void; removeEventListener: (type: string, listener: (params: any) => void) => void; removeAll: (type?: string | undefined) => void; dispatchEvent: (type: string, params: any) => void; }; export {};