import { Lux } from 'luxnet/dist'; import { XVMAPI } from 'luxnet/dist/apis/xvm'; import { InfoAPI } from 'luxnet/dist/apis/info'; import { EVMAPI } from 'luxnet/dist/apis/evm'; import Web3 from 'web3'; import { NetworkConfig } from './types'; import { ethers } from 'ethers'; import { HttpClient } from '@/helpers/http_client'; export declare const luxnet: Lux; export declare const xChain: XVMAPI; export declare const cChain: EVMAPI; export declare const pChain: import("luxnet/dist/apis/platformvm").PlatformVMAPI; export declare const infoApi: InfoAPI; export declare const web3: Web3; export declare let ethersProvider: ethers.providers.JsonRpcProvider; export declare let explorer_api: HttpClient | null; export declare let activeNetwork: NetworkConfig; /** * Returns the evm chain ID of the active network */ export declare function getEvmChainID(): number; /** * Similar to `setRpcNetwork`, but checks if credentials can be used with the api. * @param config */ export declare function setRpcNetworkAsync(config: NetworkConfig): Promise; /** * Changes the connected network of the SDK. * This is a synchronous call that does not do any network requests. * @param conf * @param credentials */ export declare function setRpcNetwork(conf: NetworkConfig, credentials?: boolean): void; /** * Given the base url for an Lux API, returns a NetworkConfig object. * @param url A string including protocol, base domain, and ports (if any). Ex: `http://localhost:9650` */ export declare function getConfigFromUrl(url: string): Promise;