import type { Namespace } from '@hub3js/namespaces'; import type { BlockchainMeta, EvmBlockchainMeta } from 'rango-types'; import { LegacyNetworks, type LegacyNetwork as Network, type LegacyWalletInfo as WalletInfo, type LegacyWalletType as WalletType } from '@rango-dev/wallets-core/legacy'; type InstanceType = any; export type { LegacyNetwork as Network, LegacyConnect as Connect, LegacyDisconnect as Disconnect, LegacySubscribe as Subscribe, LegacyCanEagerConnect as CanEagerConnect, LegacySwitchNetwork as SwitchNetwork, LegacySuggest as Suggest, LegacyCanSwitchNetwork as CanSwitchNetwork, LegacyInstallObjects as InstallObjects, LegacyWalletInfo as WalletInfo, LegacyWalletType as WalletType, LegacyNamespaceData as NamespaceData, } from '@rango-dev/wallets-core/legacy'; export { LegacyNetworks as Networks, legacyGetBlockChainNameFromId as getBlockChainNameFromId, } from '@rango-dev/wallets-core/legacy'; export declare const IS_DEV: boolean; export declare const uint8ArrayToHex: (buffer: Uint8Array) => string; export declare enum WalletTypes { DEFAULT = "default", META_MASK = "metamask", WALLET_CONNECT_2 = "wallet-connect-2", TRUST_WALLET = "trust-wallet", BINANCE = "binance", PHANTOM = "phantom", BITGET = "bitget", TRON_LINK = "tron-link", COINBASE = "coinbase", CTRL = "ctrl", READY = "ready", COIN98 = "coin98", SAFEPAL = "safepal", SAFE = "safe", TOKEN_POCKET = "token-pocket", BRAVE = "brave", BRAAVOS = "braavos", MATH = "math", EXODUS = "exodus", OKX = "okx", ENKRYPT = "enkrypt", TAHO = "taho", LEDGER = "ledger", Rabby = "rabby", TOMO = "tomo", TREZOR = "trezor", SOLFLARE = "solflare", SLUSH = "slush", TON_CONNECT = "tonconnect", XVERSE = "xverse" } export declare const namespaces: Record; export type DerivationPath = { id: string; label: string; generateDerivationPath: (index: string) => string; }; export declare const HYPERLIQUID_SIGN_NETWORK = LegacyNetworks.ARBITRUM; export declare const ETHEREUM_CHAIN_ID = "0x1"; export declare const DEFAULT_ETHEREUM_RPC_URL = "https://rpc.ankr.com/eth/8d43f5e842676d766141cb1943b9b4e12821f463665e180c209bd3dab9639df2"; export type Asset = { blockchain: Network; symbol: string; address: string | null; }; export type AllBlockchains = { [key: string]: BlockchainMeta; }; export type AddEthereumChainParameter = { chainId: string; chainName: string; nativeCurrency: { name: string; symbol: string; decimals: number; }; rpcUrls: string[]; blockExplorerUrls?: string[]; iconUrls?: string[]; }; export type EvmNetworksChainInfo = { [key: string]: AddEthereumChainParameter; }; export interface Meta { blockchains: AllBlockchains; evmNetworkChainInfo: EvmNetworksChainInfo; getSupportedChainNames: (type: WalletType) => Network[] | null; evmBasedChains: EvmBlockchainMeta[]; } export interface WalletState { connected: boolean; connecting: boolean; reachable: boolean; installed: boolean; accounts: string[] | null; network: Network | null; } export interface WalletConfig { type: WalletType; defaultNetwork?: Network; checkInstallation?: boolean; isAsyncInstance?: boolean; isAsyncSwitchNetwork?: boolean; } export type GetInstanceOptions = { network?: Network; currentProvider: InstanceType; meta: BlockchainMeta[]; force?: boolean; updateChainId: (chainId: number | string) => void; getState: () => WalletState; }; export type TryGetInstance = (() => InstanceType) | ((options: Pick) => Promise); export type GetInstance = (() => InstanceType) | ((options: GetInstanceOptions) => Promise); export type ProviderConnectResult = { accounts: string[]; chainId: string; derivationPath?: string; }; export interface Wallet { type: WalletType; extensionAvailable: boolean; connected: boolean; info: Omit; } export type Providers = { [type in WalletType]?: InstanceType; }; //# sourceMappingURL=rango.d.ts.map