import _mitt, { type Emitter, type EventHandlerMap, type EventType } from 'mitt' import type { WalletManagementEvents } from '../types/events.js' // https://github.com/developit/mitt/issues/191 const mitt = _mitt as unknown as >( all?: EventHandlerMap ) => Emitter export const widgetEvents = mitt() export const useWalletManagementEvents = () => { return widgetEvents }