import type { WalletInstance } from '@xyo-network/sdk'; /** * Consumes wallet context state from {@link WalletContext}. * @param required - When true, throws if the provider is missing. * @returns The current wallet context state. * @public */ export declare const useWalletContext: (required?: boolean) => Omit<{ activeAccount?: WalletInstance | null; activeAccountIndex?: number; rootWallet?: WalletInstance | null; setActiveAccountIndex?: import("react").Dispatch; } & { provided: true; }, "provided"> | Omit, "provided">; /** * Returns whether a {@link WalletProvider} is present in the tree. * @returns True when wallet context has been provided. * @public */ export declare const useWalletProvided: () => boolean; /** * Returns the root wallet from wallet context. * @param required - When true, throws if the provider is missing. * @returns A tuple of the root wallet and error placeholder. * @public */ export declare const useRootWallet: (required?: boolean) => [WalletInstance | null | undefined, Error | undefined]; /** * Derives a wallet at the given account index from the root wallet context. * @param index - Account index path segment to derive. * @param required - When true, throws if the provider is missing. * @returns A tuple of the derived wallet and error placeholder. * @public */ export declare const useIndexedWalletFromContext: (index: number, required?: boolean) => [WalletInstance | null | undefined, Error | undefined]; /** * Returns the currently selected account wallet from context. * @param required - When true, throws if the provider is missing. * @returns A tuple of the selected account wallet and error placeholder. * @public */ export declare const useSelectedWalletAccount: (required?: boolean) => [WalletInstance | null | undefined, Error | undefined]; //# sourceMappingURL=use.d.ts.map