UNPKG

@b2network/b2-wallet-kit

Version:

#### install

30 lines (29 loc) 1.04 kB
import type { FC, ReactNode } from 'react'; import { ChainType, WalletCollection, WalletTypes } from '../utils/wallet/types'; type GlobalContextType = { openConnectModal: boolean; handleCloseConnectModal: () => void; handleOpenConnectModal: () => void; handleOpenDisconnectModal: () => void; handleCloseDisconnectModal: () => void; handleSetWalletCollection: (w: WalletCollection) => void; autoConnect: () => void; currentWallet?: WalletTypes; setCurrentWallet: (w?: WalletTypes) => void; }; export declare const useB2Modal: () => GlobalContextType; export declare const B2ModalProvider: FC<{ children: ReactNode; isAutoConnect?: boolean; btcNetwork: 'livenet' | 'testnet'; }>; export declare const useCurrentWallet: () => { currentWallet: WalletTypes | undefined; setCurrentWallet: (w?: WalletTypes) => void; chainType: ChainType | undefined; }; export declare const useOpenModal: () => { handleOpenConnectModal: () => void; handleCloseConnectModal: () => void; }; export {};