UNPKG

@safe-global/safe-react-hooks

Version:

A collection of React Hooks that facilitates the interaction of React apps with Safe Smart Accounts

14 lines (13 loc) 487 B
import { ConfigParam, SafeConfig } from '../types/index.js'; export type UseAuthenticateParams = ConfigParam<SafeConfig>; export type UseConnectSignerReturnType = { connect: (signer: string) => Promise<void>; disconnect: () => Promise<void>; isSignerConnected: boolean; isOwnerConnected: boolean; }; /** * Hook to authenticate a signer. * @returns Functions to connect and disconnect a signer. */ export declare function useAuthenticate(): UseConnectSignerReturnType;