import type { NetworkId, Namespace } from '@meshconnect/uwc-types'; /** * Parse a WalletConnect account string into its components * Account format: "namespace:chainId:address" * Example: "eip155:1:0x1234..." or "solana:mainnet:ABC123..." */ export declare function parseAccount(account: string): { namespace: Namespace; chainId: string; networkId: NetworkId; address: string; }; /** * Build a WalletConnect account string from components */ export declare function buildAccount(namespace: Namespace, chainId: string, address: string): string; /** * Extract namespace from a network ID * Example: "eip155:1" -> "eip155" */ export declare function getNamespaceFromNetworkId(networkId: NetworkId): Namespace; /** * Extract chain ID from a network ID * Example: "eip155:1" -> "1" */ export declare function getChainIdFromNetworkId(networkId: NetworkId): string; /** * Find an account in session namespaces that matches the given network and address */ export declare function findAccountInNamespaces(namespaces: Record, targetNetworkId: NetworkId, targetAddress: string): string | null; /** * Extract all accounts from session namespaces */ export declare function extractAccountsFromNamespaces(namespaces: Record): Array<{ account: string; namespace: Namespace; chainId: string; networkId: NetworkId; address: string; }>; //# sourceMappingURL=account-utils.d.ts.map