import * as viem from 'viem'; import { Chain, Transport, Account, Client, RpcSchema, PublicActions, WalletActions, LocalAccount, PublicClient, Hex } from 'viem'; import { baseSepolia, avalancheFuji } from 'viem/chains'; declare const xLayer: { blockExplorers: { readonly default: { readonly name: "OKLink"; readonly url: "https://www.oklink.com/xlayer"; }; }; blockTime?: number | undefined | undefined; contracts?: { [x: string]: viem.ChainContract | { [sourceId: number]: viem.ChainContract | undefined; } | undefined; ensRegistry?: viem.ChainContract | undefined; ensUniversalResolver?: viem.ChainContract | undefined; multicall3?: viem.ChainContract | undefined; erc6492Verifier?: viem.ChainContract | undefined; } | undefined; ensTlds?: readonly string[] | undefined; id: 196; name: "X Layer"; nativeCurrency: { readonly name: "OKB"; readonly symbol: "OKB"; readonly decimals: 18; }; experimental_preconfirmationTime?: number | undefined | undefined; rpcUrls: { readonly default: { readonly http: readonly ["https://rpc.xlayer.tech"]; }; }; sourceId?: number | undefined | undefined; testnet?: boolean | undefined | undefined; custom?: Record | undefined; fees?: viem.ChainFees | undefined; formatters?: undefined; serializers?: viem.ChainSerializers | undefined; }; declare const xLayerTestnet: { blockExplorers: { readonly default: { readonly name: "OKLink"; readonly url: "https://www.oklink.com/xlayer-test"; }; }; blockTime?: number | undefined | undefined; contracts?: { [x: string]: viem.ChainContract | { [sourceId: number]: viem.ChainContract | undefined; } | undefined; ensRegistry?: viem.ChainContract | undefined; ensUniversalResolver?: viem.ChainContract | undefined; multicall3?: viem.ChainContract | undefined; erc6492Verifier?: viem.ChainContract | undefined; } | undefined; ensTlds?: readonly string[] | undefined; id: 1952; name: "X Layer Testnet"; nativeCurrency: { readonly name: "OKB"; readonly symbol: "OKB"; readonly decimals: 18; }; experimental_preconfirmationTime?: number | undefined | undefined; rpcUrls: { readonly default: { readonly http: readonly ["https://testrpc.xlayer.tech/terigon"]; }; }; sourceId?: number | undefined | undefined; testnet: true; custom?: Record | undefined; fees?: viem.ChainFees | undefined; formatters?: undefined; serializers?: viem.ChainSerializers | undefined; }; declare const skaleBaseSepolia: { blockExplorers: { readonly default: { readonly name: "Blockscout"; readonly url: "https://base-sepolia-testnet-explorer.skalenodes.com"; }; }; blockTime?: number | undefined | undefined; contracts?: { [x: string]: viem.ChainContract | { [sourceId: number]: viem.ChainContract | undefined; } | undefined; ensRegistry?: viem.ChainContract | undefined; ensUniversalResolver?: viem.ChainContract | undefined; multicall3?: viem.ChainContract | undefined; erc6492Verifier?: viem.ChainContract | undefined; } | undefined; ensTlds?: readonly string[] | undefined; id: 324705682; name: "SKALE Base Sepolia"; nativeCurrency: { readonly name: "Credits"; readonly symbol: "CREDITS"; readonly decimals: 18; }; experimental_preconfirmationTime?: number | undefined | undefined; rpcUrls: { readonly default: { readonly http: readonly ["https://base-sepolia-testnet.skalenodes.com/v1/jubilant-horrible-ancha"]; }; }; sourceId?: number | undefined | undefined; testnet: true; custom?: Record | undefined; fees?: viem.ChainFees | undefined; formatters?: undefined; serializers?: viem.ChainSerializers | undefined; }; declare const bscTestnet: { blockExplorers: { readonly default: { readonly name: "BscScan"; readonly url: "https://testnet.bscscan.com"; }; }; blockTime?: number | undefined | undefined; contracts?: { [x: string]: viem.ChainContract | { [sourceId: number]: viem.ChainContract | undefined; } | undefined; ensRegistry?: viem.ChainContract | undefined; ensUniversalResolver?: viem.ChainContract | undefined; multicall3?: viem.ChainContract | undefined; erc6492Verifier?: viem.ChainContract | undefined; } | undefined; ensTlds?: readonly string[] | undefined; id: 97; name: "BSC Testnet"; nativeCurrency: { readonly name: "BNB"; readonly symbol: "BNB"; readonly decimals: 18; }; experimental_preconfirmationTime?: number | undefined | undefined; rpcUrls: { readonly default: { readonly http: readonly ["https://data-seed-prebsc-1-s1.bnbchain.org:8545"]; }; }; sourceId?: number | undefined | undefined; testnet: true; custom?: Record | undefined; fees?: viem.ChainFees | undefined; formatters?: undefined; serializers?: viem.ChainSerializers | undefined; }; declare const bsc: { blockExplorers: { readonly default: { readonly name: "BscScan"; readonly url: "https://bscscan.com"; }; }; blockTime?: number | undefined | undefined; contracts?: { [x: string]: viem.ChainContract | { [sourceId: number]: viem.ChainContract | undefined; } | undefined; ensRegistry?: viem.ChainContract | undefined; ensUniversalResolver?: viem.ChainContract | undefined; multicall3?: viem.ChainContract | undefined; erc6492Verifier?: viem.ChainContract | undefined; } | undefined; ensTlds?: readonly string[] | undefined; id: 56; name: "BNB Smart Chain"; nativeCurrency: { readonly name: "BNB"; readonly symbol: "BNB"; readonly decimals: 18; }; experimental_preconfirmationTime?: number | undefined | undefined; rpcUrls: { readonly default: { readonly http: readonly ["https://bsc-dataseed1.binance.org"]; }; }; sourceId?: number | undefined | undefined; testnet?: boolean | undefined | undefined; custom?: Record | undefined; fees?: viem.ChainFees | undefined; formatters?: undefined; serializers?: viem.ChainSerializers | undefined; }; type SignerWallet = Client & WalletActions>; type ConnectedClient = PublicClient; type EvmSigner = SignerWallet | LocalAccount; /** * Creates a public client configured for the specified network * * @param network - The network to connect to * @returns A public client instance connected to the specified chain */ declare function createConnectedClient(network: string): ConnectedClient; /** * Creates a public client configured for the Base Sepolia testnet * * @deprecated Use `createConnectedClient("base-sepolia")` instead * @returns A public client instance connected to Base Sepolia */ declare function createClientSepolia(): ConnectedClient; /** * Creates a public client configured for the Avalanche Fuji testnet * * @deprecated Use `createConnectedClient("avalanche-fuji")` instead * @returns A public client instance connected to Avalanche Fuji */ declare function createClientAvalancheFuji(): ConnectedClient; /** * Creates a wallet client configured for the specified chain with a private key * * @param network - The network to connect to * @param privateKey - The private key to use for signing transactions * @returns A wallet client instance connected to the specified chain with the provided private key */ declare function createSigner(network: string, privateKey: Hex): SignerWallet; /** * Creates a wallet client configured for the Base Sepolia testnet with a private key * * @deprecated Use `createSigner("base-sepolia", privateKey)` instead * @param privateKey - The private key to use for signing transactions * @returns A wallet client instance connected to Base Sepolia with the provided private key */ declare function createSignerSepolia(privateKey: Hex): SignerWallet; /** * Creates a wallet client configured for the Avalanche Fuji testnet with a private key * * @deprecated Use `createSigner("avalanche-fuji", privateKey)` instead * @param privateKey - The private key to use for signing transactions * @returns A wallet client instance connected to Avalanche Fuji with the provided private key */ declare function createSignerAvalancheFuji(privateKey: Hex): SignerWallet; /** * Checks if a wallet is a signer wallet * * @param wallet - The wallet to check * @returns True if the wallet is a signer wallet, false otherwise */ declare function isSignerWallet(wallet: SignerWallet | LocalAccount): wallet is SignerWallet; /** * Checks if a wallet is an account * * @param wallet - The wallet to check * @returns True if the wallet is an account, false otherwise */ declare function isAccount(wallet: SignerWallet | LocalAccount): wallet is LocalAccount; /** * Maps network strings to Chain objects * * @param network - The network string to convert to a Chain object * @returns The corresponding Chain object */ declare function getChainFromNetwork(network: string | undefined): Chain; export { type ConnectedClient as C, type EvmSigner as E, type SignerWallet as S, bscTestnet as a, bsc as b, createClientAvalancheFuji as c, createClientSepolia as d, createConnectedClient as e, createSigner as f, createSignerAvalancheFuji as g, createSignerSepolia as h, getChainFromNetwork as i, isAccount as j, isSignerWallet as k, xLayerTestnet as l, skaleBaseSepolia as s, xLayer as x };