import { ConnectorUpdate } from '@web3-react/types'; import { Web3Provider } from '@ethersproject/providers'; export declare type Currency = { name: string; symbol: string; decimals: number; }; export declare type ChainType = { id: number; type: string; testnet: boolean; }; export declare type RpcData = { [key: number]: string; }; export declare type ChainInformation = ChainType & { nativeCurrency: Currency; fullName: string; shortName: string; explorerUrl?: string; }; export declare type AccountType = 'contract' | 'normal'; export declare type Status = 'connected' | 'disconnected' | 'connecting' | 'error'; export declare type Account = string; export declare type Balance = string; export declare type Provider = { id: string; name: string; type: string; image: string; strings: any; }; export declare type Wallet = { account: Account | null; balance: string; chainId: number | undefined; connect: (connectorId?: string) => Promise; connector: string | null; connectors: object; error: Error | null; ethereum?: any; getBlockNumber?: () => number | null; isConnected: () => boolean; networkName: string | null; reset: () => void; status: Status; type: AccountType | null; }; declare type EthereumProviderEip1193 = { request: (args: { method: string; params?: unknown[] | object; }) => Promise; }; declare type EthereumProviderSend = { send: (method: string, params: string[]) => Promise; }; declare type EthereumProviderSendAsync = { sendAsync: (params: { method: string; params: string[]; from: string; jsonrpc: '2.0'; id: number; }, callback: (err: Error, result: unknown) => void) => void; selectedAddress: string; }; export declare type EthereumProvider = (EthereumProviderEip1193 & EthereumProviderSend & EthereumProviderSendAsync) | Web3Provider; export declare type ConnectorInit = () => Promise; export declare type Connector = { web3ReactConnector: (params: any) => AbstractConnector; handleActivationError?: (error: Error) => Error | null; }; export declare abstract class AbstractConnector { abstract activate(): Promise | Promise; abstract getProvider(): Promise; abstract getAccount(): Promise; } export declare type ConnectorConfig = {}; export {};