import * as react_jsx_runtime from 'react/jsx-runtime'; import { ReactNode } from 'react'; import * as _talismn_chaindata_provider from '@talismn/chaindata-provider'; import { ChaindataProvider, NetworkId, TokenId } from '@talismn/chaindata-provider'; export { evmErc20TokenId, evmNativeTokenId, subAssetTokenId, subNativeTokenId, subPsp22TokenId, subTokensTokenId } from '@talismn/chaindata-provider'; import * as jotai from 'jotai'; import * as _talismn_balances from '@talismn/balances'; import { Balances, ChainConnectors } from '@talismn/balances'; import * as _talismn_token_rates from '@talismn/token-rates'; import { CoinsApiConfig } from '@talismn/token-rates'; import * as lodash from 'lodash'; /** Sets the list of addresses for which token balances will be fetched by the balances subscription */ declare const allAddressesAtom: jotai.PrimitiveAtom & { init: string[]; }; declare const balancesAtom: jotai.Atom>; declare const chainConnectorsAtom: jotai.Atom; declare const chaindataAtom: jotai.Atom<{ networks: ({ id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; genesisHash: `0x${string}`; platform: "polkadot"; chainName: string; specName: string; specVersion: number; account: "secp256k1" | "*25519"; prefix: number; rpcs: string[]; topology: { type: "standalone"; } | { type: "relay"; } | { type: "parachain"; relayId: string; paraId: number; }; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; chainspecQrUrl?: string | undefined; latestMetadataQrUrl?: string | undefined; oldPrefix?: number | undefined; registryTypes?: any; signedExtensions?: any; hasCheckMetadataHash?: boolean | undefined; hasExtrinsicSignatureTypePrefix?: boolean | undefined; isUnknownFeeToken?: boolean | undefined; balancesConfig?: { "substrate-native"?: { disable?: boolean | undefined; } | undefined; "substrate-assets"?: Record | undefined; "substrate-psp22"?: Record | undefined; "substrate-tokens"?: { palletId?: string | undefined; } | undefined; "substrate-foreignassets"?: Record | undefined; "substrate-hydration"?: Record | undefined; "substrate-dtao"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "ethereum"; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; substrateChainId?: string | undefined; preserveGasEstimate?: boolean | undefined; feeType?: "legacy" | "eip-1559" | undefined; l2FeeType?: { type: "op-stack"; } | { type: "scroll"; l1GasPriceOracle: `0x${string}`; } | undefined; contracts?: { Erc20Aggregator?: `0x${string}` | undefined; Multicall3?: `0x${string}` | undefined; } | undefined; balancesConfig?: { "evm-native"?: Record | undefined; "evm-erc20"?: Record | undefined; "evm-uniswapv2"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "solana"; genesisHash: string; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; balancesConfig?: { "sol-native"?: Record | undefined; "sol-spl"?: Record | undefined; } | undefined; })[]; tokens: ({ id: string; networkId: string; decimals: number; symbol: string; type: "evm-erc20"; platform: "ethereum"; contractAddress: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-native"; platform: "ethereum"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-uniswapv2"; platform: "ethereum"; contractAddress: `0x${string}`; symbol0: string; symbol1: string; decimals0: number; decimals1: number; tokenAddress0: `0x${string}`; tokenAddress1: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isCustom?: boolean | undefined; coingeckoId0?: string | undefined; coingeckoId1?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-assets"; platform: "polkadot"; assetId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-dtao"; platform: "polkadot"; netuid: number; isTransferable: boolean; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; subnetName?: string | undefined; hotkey?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-foreignassets"; platform: "polkadot"; onChainId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-native"; platform: "polkadot"; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-psp22"; platform: "polkadot"; contractAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-tokens"; platform: "polkadot"; onChainId: string | number; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-hydration"; platform: "polkadot"; onChainId: number; assetType: "Token" | "Erc20" | "External"; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-native"; platform: "solana"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-spl"; platform: "solana"; mintAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; })[]; } | Promise<{ networks: ({ id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; genesisHash: `0x${string}`; platform: "polkadot"; chainName: string; specName: string; specVersion: number; account: "secp256k1" | "*25519"; prefix: number; rpcs: string[]; topology: { type: "standalone"; } | { type: "relay"; } | { type: "parachain"; relayId: string; paraId: number; }; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; chainspecQrUrl?: string | undefined; latestMetadataQrUrl?: string | undefined; oldPrefix?: number | undefined; registryTypes?: any; signedExtensions?: any; hasCheckMetadataHash?: boolean | undefined; hasExtrinsicSignatureTypePrefix?: boolean | undefined; isUnknownFeeToken?: boolean | undefined; balancesConfig?: { "substrate-native"?: { disable?: boolean | undefined; } | undefined; "substrate-assets"?: Record | undefined; "substrate-psp22"?: Record | undefined; "substrate-tokens"?: { palletId?: string | undefined; } | undefined; "substrate-foreignassets"?: Record | undefined; "substrate-hydration"?: Record | undefined; "substrate-dtao"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "ethereum"; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; substrateChainId?: string | undefined; preserveGasEstimate?: boolean | undefined; feeType?: "legacy" | "eip-1559" | undefined; l2FeeType?: { type: "op-stack"; } | { type: "scroll"; l1GasPriceOracle: `0x${string}`; } | undefined; contracts?: { Erc20Aggregator?: `0x${string}` | undefined; Multicall3?: `0x${string}` | undefined; } | undefined; balancesConfig?: { "evm-native"?: Record | undefined; "evm-erc20"?: Record | undefined; "evm-uniswapv2"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "solana"; genesisHash: string; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; balancesConfig?: { "sol-native"?: Record | undefined; "sol-spl"?: Record | undefined; } | undefined; })[]; tokens: ({ id: string; networkId: string; decimals: number; symbol: string; type: "evm-erc20"; platform: "ethereum"; contractAddress: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-native"; platform: "ethereum"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-uniswapv2"; platform: "ethereum"; contractAddress: `0x${string}`; symbol0: string; symbol1: string; decimals0: number; decimals1: number; tokenAddress0: `0x${string}`; tokenAddress1: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isCustom?: boolean | undefined; coingeckoId0?: string | undefined; coingeckoId1?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-assets"; platform: "polkadot"; assetId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-dtao"; platform: "polkadot"; netuid: number; isTransferable: boolean; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; subnetName?: string | undefined; hotkey?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-foreignassets"; platform: "polkadot"; onChainId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-native"; platform: "polkadot"; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-psp22"; platform: "polkadot"; contractAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-tokens"; platform: "polkadot"; onChainId: string | number; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-hydration"; platform: "polkadot"; onChainId: number; assetType: "Token" | "Erc20" | "External"; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-native"; platform: "solana"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-spl"; platform: "solana"; mintAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; })[]; }>>; declare const tokensAtom: jotai.Atom>; declare const networksAtom: jotai.Atom | undefined; "substrate-psp22"?: Record | undefined; "substrate-tokens"?: { palletId?: string | undefined; } | undefined; "substrate-foreignassets"?: Record | undefined; "substrate-hydration"?: Record | undefined; "substrate-dtao"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "ethereum"; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; substrateChainId?: string | undefined; preserveGasEstimate?: boolean | undefined; feeType?: "legacy" | "eip-1559" | undefined; l2FeeType?: { type: "op-stack"; } | { type: "scroll"; l1GasPriceOracle: `0x${string}`; } | undefined; contracts?: { Erc20Aggregator?: `0x${string}` | undefined; Multicall3?: `0x${string}` | undefined; } | undefined; balancesConfig?: { "evm-native"?: Record | undefined; "evm-erc20"?: Record | undefined; "evm-uniswapv2"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "solana"; genesisHash: string; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; balancesConfig?: { "sol-native"?: Record | undefined; "sol-spl"?: Record | undefined; } | undefined; })[]>>; declare const chaindataProviderAtom: jotai.Atom; declare const useSyncSwapsChaindata: () => [void, never]; declare const coinsApiConfigAtom: jotai.WritableAtom], void>; declare const enableTestnetsAtom: jotai.PrimitiveAtom & { init: boolean; }; declare const enabledChainsAtom: jotai.PrimitiveAtom & { init: string[] | undefined; }; declare const enabledTokensAtom: jotai.PrimitiveAtom & { init: string[] | undefined; }; declare const cryptoWaitReadyAtom: jotai.Atom>; declare const tokenRatesAtom: jotai.Atom>; declare const useSetBalancesAddresses: (addresses: string[]) => void; /** * @name useBalances * @description Hook to get the current balances state. * @param persistBackend an optional BalancesPersistBackend backend to use for persisting the balances state. By default, indexedDB is used. * @returns a Balances object containing the current balances state. */ declare const useBalances: () => Balances; type BalancesStatus = { status: "live"; } | { status: "fetching"; } | { status: "stale"; staleChains: string[]; }; /** * Given a collection of `Balances`, this hook returns a `BalancesStatus` summary for the collection. * * @param balances The collection of balances to get the status from. * @returns An instance of `BalancesStatus` which represents the status of the balances collection. */ declare const useBalancesStatus: (balances: Balances) => BalancesStatus; declare const getStaleChains: (balances: Balances) => string[]; declare const useChainConnectors: () => _talismn_balances.ChainConnectors; declare const useChaindataProvider: () => _talismn_chaindata_provider.ChaindataProvider; declare const useChaindata: () => { networks: ({ id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; genesisHash: `0x${string}`; platform: "polkadot"; chainName: string; specName: string; specVersion: number; account: "secp256k1" | "*25519"; prefix: number; rpcs: string[]; topology: { type: "standalone"; } | { type: "relay"; } | { type: "parachain"; relayId: string; paraId: number; }; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; chainspecQrUrl?: string | undefined; latestMetadataQrUrl?: string | undefined; oldPrefix?: number | undefined; registryTypes?: any; signedExtensions?: any; hasCheckMetadataHash?: boolean | undefined; hasExtrinsicSignatureTypePrefix?: boolean | undefined; isUnknownFeeToken?: boolean | undefined; balancesConfig?: { "substrate-native"?: { disable?: boolean | undefined; } | undefined; "substrate-assets"?: Record | undefined; "substrate-psp22"?: Record | undefined; "substrate-tokens"?: { palletId?: string | undefined; } | undefined; "substrate-foreignassets"?: Record | undefined; "substrate-hydration"?: Record | undefined; "substrate-dtao"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "ethereum"; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; substrateChainId?: string | undefined; preserveGasEstimate?: boolean | undefined; feeType?: "legacy" | "eip-1559" | undefined; l2FeeType?: { type: "op-stack"; } | { type: "scroll"; l1GasPriceOracle: `0x${string}`; } | undefined; contracts?: { Erc20Aggregator?: `0x${string}` | undefined; Multicall3?: `0x${string}` | undefined; } | undefined; balancesConfig?: { "evm-native"?: Record | undefined; "evm-erc20"?: Record | undefined; "evm-uniswapv2"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "solana"; genesisHash: string; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; balancesConfig?: { "sol-native"?: Record | undefined; "sol-spl"?: Record | undefined; } | undefined; })[]; tokens: ({ id: string; networkId: string; decimals: number; symbol: string; type: "evm-erc20"; platform: "ethereum"; contractAddress: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-native"; platform: "ethereum"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-uniswapv2"; platform: "ethereum"; contractAddress: `0x${string}`; symbol0: string; symbol1: string; decimals0: number; decimals1: number; tokenAddress0: `0x${string}`; tokenAddress1: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isCustom?: boolean | undefined; coingeckoId0?: string | undefined; coingeckoId1?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-assets"; platform: "polkadot"; assetId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-dtao"; platform: "polkadot"; netuid: number; isTransferable: boolean; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; subnetName?: string | undefined; hotkey?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-foreignassets"; platform: "polkadot"; onChainId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-native"; platform: "polkadot"; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-psp22"; platform: "polkadot"; contractAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-tokens"; platform: "polkadot"; onChainId: string | number; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-hydration"; platform: "polkadot"; onChainId: number; assetType: "Token" | "Erc20" | "External"; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-native"; platform: "solana"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-spl"; platform: "solana"; mintAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; })[]; }; declare const useNetworks: () => ({ id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; genesisHash: `0x${string}`; platform: "polkadot"; chainName: string; specName: string; specVersion: number; account: "secp256k1" | "*25519"; prefix: number; rpcs: string[]; topology: { type: "standalone"; } | { type: "relay"; } | { type: "parachain"; relayId: string; paraId: number; }; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; chainspecQrUrl?: string | undefined; latestMetadataQrUrl?: string | undefined; oldPrefix?: number | undefined; registryTypes?: any; signedExtensions?: any; hasCheckMetadataHash?: boolean | undefined; hasExtrinsicSignatureTypePrefix?: boolean | undefined; isUnknownFeeToken?: boolean | undefined; balancesConfig?: { "substrate-native"?: { disable?: boolean | undefined; } | undefined; "substrate-assets"?: Record | undefined; "substrate-psp22"?: Record | undefined; "substrate-tokens"?: { palletId?: string | undefined; } | undefined; "substrate-foreignassets"?: Record | undefined; "substrate-hydration"?: Record | undefined; "substrate-dtao"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "ethereum"; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; substrateChainId?: string | undefined; preserveGasEstimate?: boolean | undefined; feeType?: "legacy" | "eip-1559" | undefined; l2FeeType?: { type: "op-stack"; } | { type: "scroll"; l1GasPriceOracle: `0x${string}`; } | undefined; contracts?: { Erc20Aggregator?: `0x${string}` | undefined; Multicall3?: `0x${string}` | undefined; } | undefined; balancesConfig?: { "evm-native"?: Record | undefined; "evm-erc20"?: Record | undefined; "evm-uniswapv2"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "solana"; genesisHash: string; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; balancesConfig?: { "sol-native"?: Record | undefined; "sol-spl"?: Record | undefined; } | undefined; })[]; declare const useNetworksById: () => lodash.Dictionary<{ id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; genesisHash: `0x${string}`; platform: "polkadot"; chainName: string; specName: string; specVersion: number; account: "secp256k1" | "*25519"; prefix: number; rpcs: string[]; topology: { type: "standalone"; } | { type: "relay"; } | { type: "parachain"; relayId: string; paraId: number; }; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; chainspecQrUrl?: string | undefined; latestMetadataQrUrl?: string | undefined; oldPrefix?: number | undefined; registryTypes?: any; signedExtensions?: any; hasCheckMetadataHash?: boolean | undefined; hasExtrinsicSignatureTypePrefix?: boolean | undefined; isUnknownFeeToken?: boolean | undefined; balancesConfig?: { "substrate-native"?: { disable?: boolean | undefined; } | undefined; "substrate-assets"?: Record | undefined; "substrate-psp22"?: Record | undefined; "substrate-tokens"?: { palletId?: string | undefined; } | undefined; "substrate-foreignassets"?: Record | undefined; "substrate-hydration"?: Record | undefined; "substrate-dtao"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "ethereum"; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; substrateChainId?: string | undefined; preserveGasEstimate?: boolean | undefined; feeType?: "legacy" | "eip-1559" | undefined; l2FeeType?: { type: "op-stack"; } | { type: "scroll"; l1GasPriceOracle: `0x${string}`; } | undefined; contracts?: { Erc20Aggregator?: `0x${string}` | undefined; Multicall3?: `0x${string}` | undefined; } | undefined; balancesConfig?: { "evm-native"?: Record | undefined; "evm-erc20"?: Record | undefined; "evm-uniswapv2"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "solana"; genesisHash: string; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; balancesConfig?: { "sol-native"?: Record | undefined; "sol-spl"?: Record | undefined; } | undefined; }>; declare const useNetwork: (networkId?: NetworkId) => { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; genesisHash: `0x${string}`; platform: "polkadot"; chainName: string; specName: string; specVersion: number; account: "secp256k1" | "*25519"; prefix: number; rpcs: string[]; topology: { type: "standalone"; } | { type: "relay"; } | { type: "parachain"; relayId: string; paraId: number; }; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; chainspecQrUrl?: string | undefined; latestMetadataQrUrl?: string | undefined; oldPrefix?: number | undefined; registryTypes?: any; signedExtensions?: any; hasCheckMetadataHash?: boolean | undefined; hasExtrinsicSignatureTypePrefix?: boolean | undefined; isUnknownFeeToken?: boolean | undefined; balancesConfig?: { "substrate-native"?: { disable?: boolean | undefined; } | undefined; "substrate-assets"?: Record | undefined; "substrate-psp22"?: Record | undefined; "substrate-tokens"?: { palletId?: string | undefined; } | undefined; "substrate-foreignassets"?: Record | undefined; "substrate-hydration"?: Record | undefined; "substrate-dtao"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "ethereum"; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; substrateChainId?: string | undefined; preserveGasEstimate?: boolean | undefined; feeType?: "legacy" | "eip-1559" | undefined; l2FeeType?: { type: "op-stack"; } | { type: "scroll"; l1GasPriceOracle: `0x${string}`; } | undefined; contracts?: { Erc20Aggregator?: `0x${string}` | undefined; Multicall3?: `0x${string}` | undefined; } | undefined; balancesConfig?: { "evm-native"?: Record | undefined; "evm-erc20"?: Record | undefined; "evm-uniswapv2"?: Record | undefined; } | undefined; } | { id: string; name: string; nativeTokenId: string; nativeCurrency: { decimals: number; symbol: string; name: string; coingeckoId?: string | undefined; mirrorOf?: string | undefined; logo?: string | undefined; }; blockExplorerUrls: string[]; platform: "solana"; genesisHash: string; rpcs: string[]; isTestnet?: boolean | undefined; isDefault?: boolean | undefined; forceScan?: boolean | undefined; logo?: string | undefined; themeColor?: string | undefined; balancesConfig?: { "sol-native"?: Record | undefined; "sol-spl"?: Record | undefined; } | undefined; }; declare const useTokens: () => ({ id: string; networkId: string; decimals: number; symbol: string; type: "evm-erc20"; platform: "ethereum"; contractAddress: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-native"; platform: "ethereum"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-uniswapv2"; platform: "ethereum"; contractAddress: `0x${string}`; symbol0: string; symbol1: string; decimals0: number; decimals1: number; tokenAddress0: `0x${string}`; tokenAddress1: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isCustom?: boolean | undefined; coingeckoId0?: string | undefined; coingeckoId1?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-assets"; platform: "polkadot"; assetId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-dtao"; platform: "polkadot"; netuid: number; isTransferable: boolean; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; subnetName?: string | undefined; hotkey?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-foreignassets"; platform: "polkadot"; onChainId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-native"; platform: "polkadot"; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-psp22"; platform: "polkadot"; contractAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-tokens"; platform: "polkadot"; onChainId: string | number; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-hydration"; platform: "polkadot"; onChainId: number; assetType: "Token" | "Erc20" | "External"; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-native"; platform: "solana"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-spl"; platform: "solana"; mintAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; })[]; declare const useTokensById: () => lodash.Dictionary<{ id: string; networkId: string; decimals: number; symbol: string; type: "evm-erc20"; platform: "ethereum"; contractAddress: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-native"; platform: "ethereum"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-uniswapv2"; platform: "ethereum"; contractAddress: `0x${string}`; symbol0: string; symbol1: string; decimals0: number; decimals1: number; tokenAddress0: `0x${string}`; tokenAddress1: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isCustom?: boolean | undefined; coingeckoId0?: string | undefined; coingeckoId1?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-assets"; platform: "polkadot"; assetId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-dtao"; platform: "polkadot"; netuid: number; isTransferable: boolean; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; subnetName?: string | undefined; hotkey?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-foreignassets"; platform: "polkadot"; onChainId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-native"; platform: "polkadot"; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-psp22"; platform: "polkadot"; contractAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-tokens"; platform: "polkadot"; onChainId: string | number; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-hydration"; platform: "polkadot"; onChainId: number; assetType: "Token" | "Erc20" | "External"; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-native"; platform: "solana"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-spl"; platform: "solana"; mintAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; }>; declare const useToken: (tokenId?: TokenId) => { id: string; networkId: string; decimals: number; symbol: string; type: "evm-erc20"; platform: "ethereum"; contractAddress: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-native"; platform: "ethereum"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "evm-uniswapv2"; platform: "ethereum"; contractAddress: `0x${string}`; symbol0: string; symbol1: string; decimals0: number; decimals1: number; tokenAddress0: `0x${string}`; tokenAddress1: `0x${string}`; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isCustom?: boolean | undefined; coingeckoId0?: string | undefined; coingeckoId1?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-assets"; platform: "polkadot"; assetId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-dtao"; platform: "polkadot"; netuid: number; isTransferable: boolean; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; subnetName?: string | undefined; hotkey?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-foreignassets"; platform: "polkadot"; onChainId: string; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; isFrozen?: boolean | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-native"; platform: "polkadot"; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-psp22"; platform: "polkadot"; contractAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-tokens"; platform: "polkadot"; onChainId: string | number; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "substrate-hydration"; platform: "polkadot"; onChainId: number; assetType: "Token" | "Erc20" | "External"; isSufficient: boolean; existentialDeposit: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-native"; platform: "solana"; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; } | { id: string; networkId: string; decimals: number; symbol: string; type: "sol-spl"; platform: "solana"; mintAddress: string; isDefault?: boolean | undefined; name?: string | undefined; logo?: string | undefined; coingeckoId?: string | undefined; noDiscovery?: boolean | undefined; mirrorOf?: string | undefined; }; declare const useTokenRates: () => _talismn_token_rates.TokenRatesList; declare const useTokenRate: (tokenId?: TokenId) => _talismn_token_rates.TokenRates; type BalancesConfig = { coinsApiUrl?: string; /** Enables balances fetching for tokens on testnet chains. */ withTestnets?: boolean; /** * A list of chain genesisHashes to fetch balances for. * * If undefined, balances will be fetched for all chains. * * Only applies to built-in chains, custom chains will always fetch balances. * * NOTE: This is an allowlist to enable the dapp to disable balances for chains it does not care about. * Adding a chain here which is not already supported by the library will not automagically begin to fetch balances. * It will just be ignored. * * In a similar vein, if you add testnets here then make sure you've also set the `useTestnets` prop to `true`. * * @example * enabledChains={[ * // polkadot * "0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3", * // kusama * "0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe", * // rococo * "0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e", * // westend * "0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e", * ]} */ enabledChains?: string[]; /** * A list of token ids to fetch balances for. * * If undefined, balances will be fetched for all tokens. * * If `enabledChains` is also defined, both filters will be applied, * such that only the intersection of enabledChains and enabledTokens will be fetched. * * @example * enabledTokens={[ * // DOT (polkadot relay chain) * "polkadot-substrate-native", * // USDC (polkadot asset hub) * "polkadot-asset-hub-substrate-assets-1337-usdc", * // ETH (ethereum mainnet) * "1-evm-native", * // GM (gm chain) * "gm-substrate-tokens-gm", * ]} */ enabledTokens?: string[]; children?: ReactNode; }; declare const BalancesProvider: ({ coinsApiUrl, withTestnets, enabledChains, enabledTokens, children, }: BalancesConfig) => react_jsx_runtime.JSX.Element; export { type BalancesConfig, BalancesProvider, type BalancesStatus, allAddressesAtom, balancesAtom, chainConnectorsAtom, chaindataAtom, chaindataProviderAtom, coinsApiConfigAtom, cryptoWaitReadyAtom, enableTestnetsAtom, enabledChainsAtom, enabledTokensAtom, getStaleChains, networksAtom, tokenRatesAtom, tokensAtom, useBalances, useBalancesStatus, useChainConnectors, useChaindata, useChaindataProvider, useNetwork, useNetworks, useNetworksById, useSetBalancesAddresses, useSyncSwapsChaindata, useToken, useTokenRate, useTokenRates, useTokens, useTokensById };