import { AccountInterface } from 'starknet'; import { Connector } from '../connectors'; /** Account connection status. */ export declare type AccountStatus = 'connected' | 'disconnected'; /** * Value returned from `useAccount`. */ export interface UseAccountResult { /** The connected account object. */ account?: AccountInterface; /** The address of the connected account. */ address?: string; /** The connected connector. */ connector?: Connector; /** The connection status. */ status: AccountStatus; } /** * Hook for accessing the account and its connection status. * * @remarks * * This hook is used to access the `AccountInterface` object provided by the * currently connected wallet. * * @example * This example shows how to display the wallet connection status and * the currently connected wallet address. * ```tsx * function Component() { * const { account, address, status } = useAccount() * * if (status === 'disconnected') return
Disconnected
* returnAccount: {address}
* } * ``` */ export declare function useAccount(): UseAccountResult;