export declare type TNetworkVersion = "1" | "2" | "3" | "4" | "5" | "42"; export interface IEthereumProvider { /** * @deprecated */ enable(): Promise; /** * @deprecated */ selectedAddress: string; /** * @deprecated */ networkVersion: TNetworkVersion; send(method: string, params?: Array): Promise; on(action: "notification", listener: (result: any) => void): this; on(action: "connect", listener: () => void): this; on(action: "close", listener: (code: number, reason: string) => void): this; off(action: "connect", listener: () => void): this; off(action: "close", listener: (code: number, reason: string) => void): this; on(action: "eth_requestAccounts", listener: (networkId: number) => void): this; on(action: "chainChanged", listener: (chainId: string) => void): this; on(action: "networkChanged", listener: (networkId: string) => void): this; on(action: "accountsChanged", listener: (accounts: Array) => void): this; off(action: "eth_requestAccounts", listener: (networkId: number) => void): this; off(action: "chainChanged", listener: (chainId: string) => void): this; off(action: "networkChanged", listener: (chainId: string) => void): this; off(action: "accountsChanged", listener: (accounts: Array) => void): this; /** * DEV_NOTE : Only exists in metamask provider */ isMetaMask?: boolean; /** * DEV_NOTE : Only exists in trust-wallet provider */ isTrust?: boolean; /** * DEV_NOTE : Only exists in ImToken provider */ isImToken?: boolean; }