import { Web3ReactHooks } from '@web3-react/core';
import { Connector, Provider as Eip1193Provider } from '@web3-react/types';
import { JsonRpcProvider } from '@ethersproject/providers';
import { ChainId } from '@dodoex/api';
export type Web3Connection = [Connector, Web3ReactHooks];
export declare function getConnectionFromProvider(onError: (error: Error) => void, provider?: JsonRpcProvider | Eip1193Provider): Web3Connection | undefined;
export declare function getConnectionFromWalletConnect(useDefault: boolean, jsonRpcUrlMap: {
    [chainId: number]: string[];
}, defaultChainId: ChainId | undefined, onError: (error: Error) => void): Web3Connection;
export declare function getConnectionFromMetaMask(onError: (error: Error) => void): Web3Connection;
