import { SessionTypes, ConnectNamespace } from "@okxconnect/core"; import Wallet = SessionTypes.Wallet; export declare function getRpcUrl(chainId: string, rpc: ConnectNamespace, projectId?: string): string | undefined; export declare function getChainId(chain: string): string; export declare function fromAccountToAddress(account: string): string; /** * Converts * { * "eip155:1": {...}, * "eip155:2": {...}, * } * into * { * "eip155": { * chains: ["eip155:1", "eip155:2"], * ... * } * } * */ /** * Populates the chains array for each namespace with the chains extracted from the accounts if are otherwise missing */ export declare function convertChainIdToNumber(chainId: string | number): number | string; export declare function parseChainId(chain: string): ChainIdParams; interface ChainIdParams { namespace: string; reference: string; } export declare function mergeArrays(a?: T[], b?: T[]): T[]; export declare function syncAddressAvailable(wallet: Wallet | undefined): boolean; export declare function syncAddressHostAvailable(): boolean; export {};