import { Chain } from '@swing.xyz/sdk'; import { WalletConnector } from '../connectors/index.js'; export { c as connect, d as disconnect } from '../connect-DEVkBKAv.js'; import 'wagmi'; interface WalletConnection { connector: WalletConnector; chain: Chain; accounts: string[]; } /** * Get all the connections. * * @returns All the connections. */ declare function getConnections(): WalletConnection[]; /** * Get a connection for a given wallet address. * * @param walletAddress - The wallet address. * @returns The connection for the given wallet address. */ declare function getConnection(walletAddress?: string): WalletConnection | undefined; /** * Get a connection for a given chain. * * @param chainId - The ID of the chain. * @param currentConnection - (Optional) The current connection to check first. * @returns The connection for the given chain. */ declare function getConnectionForChain(chainId: string, currentConnectionOrAddress: WalletConnection | string | undefined): WalletConnection | undefined; /** * Check if a wallet address is valid for a given chain. * * @param walletAddress - The wallet address. * @param chainId - The ID of the chain. * @returns True if the wallet address is valid for the given chain, false otherwise. */ declare function isValidWalletAddressForChain({ walletAddress, chainId, }: { walletAddress: string; chainId: string; }): boolean; /** * Get a valid wallet address for a given chain. * * @param chainId - The ID of the chain. * @param walletAddress - The wallet address. * @returns The valid wallet address for the given chain. */ declare function getValidWalletAddressForChain({ chainId, walletAddress, }: { chainId: string; walletAddress: string; }): string; export { type WalletConnection, getConnection, getConnectionForChain, getConnections, getValidWalletAddressForChain, isValidWalletAddressForChain };