import { AddressString, HexString } from "./common"; import { Web3Method } from "./Web3Method"; interface BaseWeb3Response { method: Web3Method; errorMessage?: string | null; result?: Result; } export interface ErrorResponse extends BaseWeb3Response { errorMessage: string; } export declare function ErrorResponse(method: Web3Method, errorMessage: string): ErrorResponse; export declare type RequestEthereumAccountsResponse = BaseWeb3Response; export declare function RequestEthereumAccountsResponse(addresses: AddressString[]): RequestEthereumAccountsResponse; export declare function isRequestEthereumAccountsResponse(res: any): res is RequestEthereumAccountsResponse; export declare type SignEthereumMessageResponse = BaseWeb3Response; export declare type SignEthereumTransactionResponse = BaseWeb3Response; export declare type SubmitEthereumTransactionResponse = BaseWeb3Response; export declare type EthereumAddressFromSignedMessageResponse = BaseWeb3Response; export declare type ScanQRCodeResponse = BaseWeb3Response; export declare type ArbitraryResponse = BaseWeb3Response; export declare type Web3Response = ErrorResponse | RequestEthereumAccountsResponse | SignEthereumMessageResponse | SignEthereumTransactionResponse | SubmitEthereumTransactionResponse | EthereumAddressFromSignedMessageResponse | ScanQRCodeResponse | ArbitraryResponse; export {};