import React from "react"; import { WalletType } from "graz"; import { Prettify } from "../../../core/src/utils"; export type WalletContextTypeExternal = { /** * Trigger the wallet connect flow of the dApp */ connectWallet: () => void; /** * Trigger the wallet disconnect flow of the dApp */ disconnectWallet: () => void; /** * The connected wallet {@link WalletType} */ connectedWalletType: WalletType | undefined; /** * Primary chain ID * * @default 'cosmoshub-4' */ primaryChainId?: string; /** * Chain IDs to be used for fetching balances */ chains?: string[]; }; export type WalletContextTypeInternal = { userAddress: string | undefined; isMainnet: boolean; isLedgerWallet: boolean; }; export type WalletContextType = Prettify; export type WalletContextProviderProps = Prettify>; /** * WalletContextProvider is a internally used context provider, * which provides various modules with wallet related information */ export declare const WalletContextProvider: React.FC; export { WalletType }; export declare const useWalletClientContext: () => WalletContextType; export declare const useWalletClientContextUnsafe: () => WalletContextType | null;