1 | import { Web3Context, Web3ContextInitOptions, Web3SubscriptionConstructor } from 'web3-core';
|
2 | import { Web3Eth, RegisteredSubscription } from 'web3-eth';
|
3 | import { ENS } from 'web3-eth-ens';
|
4 | import { Iban } from 'web3-eth-iban';
|
5 | import { Personal } from 'web3-eth-personal';
|
6 | import { Net } from 'web3-net';
|
7 | import * as utils from 'web3-utils';
|
8 | import { EthExecutionAPI, SupportedProviders } from 'web3-types';
|
9 | import { Web3EthInterface } from './types.js';
|
10 | export declare class Web3<CustomRegisteredSubscription extends {
|
11 | [key: string]: Web3SubscriptionConstructor<EthExecutionAPI>;
|
12 | } = RegisteredSubscription> extends Web3Context<EthExecutionAPI, CustomRegisteredSubscription & RegisteredSubscription> {
|
13 | static version: string;
|
14 | static utils: typeof utils;
|
15 | static requestEIP6963Providers: () => Promise<import("./web3_eip6963.js").EIP6963ProviderResponse>;
|
16 | static onNewProviderDiscovered: (callback: (providerEvent: import("./web3_eip6963.js").EIP6963ProvidersMapUpdateEvent) => void) => void;
|
17 | static modules: {
|
18 | Web3Eth: typeof Web3Eth;
|
19 | Iban: typeof Iban;
|
20 | Net: typeof Net;
|
21 | ENS: typeof ENS;
|
22 | Personal: typeof Personal;
|
23 | };
|
24 | utils: typeof utils;
|
25 | eth: Web3EthInterface;
|
26 | constructor(providerOrContext?: string | SupportedProviders<EthExecutionAPI> | Web3ContextInitOptions<EthExecutionAPI, CustomRegisteredSubscription>);
|
27 | }
|
28 | export default Web3;
|