import React from 'react'; export declare type EventBusHandler

= (params: P) => void; export declare type EventBusHandlerList = Array>; export declare type EventBusHandlerMap> = Map>; export default function EventBus>(all?: EventBusHandlerMap): { on: (type: Key, handler: EventBusHandler) => void; off: (type: Key_1, handler?: EventBusHandler) => void; emit: (type: Key_2, evt?: Events[Key_2]) => void; all: EventBusHandlerMap; }; export declare function createEventBusContainer>(): { Provider: React.FC<{}>; useSubscribe: (type: Key, handler: EventBusHandler) => void; usePublish: () => (type: Key_1, evt?: Events[Key_1]) => void; };