UNPKG

@lifi/widget

Version:

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.

17 lines (16 loc) 592 B
import type { Signer } from '@ethersproject/abstract-signer'; import type { FC, PropsWithChildren } from 'react'; import type { WalletContextProps } from './types'; export declare const useWallet: () => WalletContextProps; export declare const WalletProvider: FC<PropsWithChildren>; export declare const extractAccountFromSigner: (signer?: Signer) => Promise<{ address: string | undefined; isActive: boolean; signer: Signer | undefined; chainId: number | undefined; } | { address?: undefined; isActive?: undefined; signer?: undefined; chainId?: undefined; }>;