import { Provider as Eip1193Provider } from '@web3-react/types';
import { JsonRpcProvider } from '@ethersproject/providers';
import { ChainId } from '@dodoex/api';
import { Web3Connection } from './web3';
import { WalletType } from '../../constants/wallet';
export interface Web3ConnectorsProps {
    provider?: Eip1193Provider | JsonRpcProvider;
    jsonRpcUrlMap?: {
        [chainId: number]: string[];
    };
    defaultChainId?: ChainId;
}
export declare function useWeb3Connectors({ provider, jsonRpcUrlMap: jsonRpcUrlMapProps, defaultChainId, }: Web3ConnectorsProps): {
    connectors: Web3Connection[];
    key: number;
};
export declare function connectToWallet(type: WalletType, chainId: number | undefined, onError: (error: Error) => void): Promise<void>;
