type Subscription = (val: T) => void; export declare class EventEmitter { private subscriptions; emit: (val: T) => void; useSubscription: (callback: Subscription) => void; } export default function useEventEmitter(): EventEmitter; export {};