UNPKG

@roochnetwork/rooch-sdk-kit

Version:
15 lines (14 loc) 705 B
import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; import { ThirdPartyAddress } from '@roochnetwork/rooch-sdk'; import { Wallet } from '../../wallet/index.js'; type ConnectWalletArgs = { wallet: Wallet; }; type ConnectWalletResult = ThirdPartyAddress[]; type UseConnectWalletMutationOptions = Omit<UseMutationOptions<ConnectWalletResult, Error, ConnectWalletArgs, unknown>, 'mutationFn'>; /** * Mutation hook for establishing a connection to a specific wallet. * */ export declare function useConnectWallet({ mutationKey, ...mutationOptions }?: UseConnectWalletMutationOptions): UseMutationResult<ConnectWalletResult, Error, ConnectWalletArgs, unknown>; export {};