@quirks/react
Version:
10 lines (9 loc) • 473 B
TypeScript
import { WalletEventTypes, WalletEventNames } from '@quirks/core';
import { EventEmitter } from 'eventemitter3';
/**
* It allow you to subscribe to quirks wallets events.
*
* @param event event name that you want to subscribe.
* @param fn event callback function that you wanna trigger on event fire.
*/
export declare const useWalletEvents: <T extends EventEmitter.EventNames<WalletEventNames>>(event: T, fn: EventEmitter.EventListener<WalletEventTypes, T>) => void;