import type { UseConnectionReturn } from '@meshconnect/uwc-types'; /** * Hook for managing wallet connections with both injected and WalletConnect modes * @param walletId - The ID of the wallet to connect to (e.g., 'metamask', 'trust') * @returns Connection methods and state for both injected and WalletConnect modes * @throws Error if used outside of ConnectionProvider * @example * ```tsx * const { walletConnect, injected } = useConnection('metamask') * * // Connect with browser extension * await injected.connect('eip155:1') * * // Connect with WalletConnect QR code * await walletConnect.connect('eip155:1') * if (walletConnect.connectionURI) { * // Display QR code with walletConnect.connectionURI * } * ``` */ export declare function useConnection(walletId: string): UseConnectionReturn; //# sourceMappingURL=useConnection.d.ts.map