import { Web3Provider, StaticJsonRpcProvider } from '@ethersproject/providers'; import type { ProviderConfig, SynthetixProvider } from './types'; export declare const PROVIDER_STALL_TIMEOUT = 750; export declare const PROVIDER_DEFAULT_WEIGHT = 1; declare const loadProvider: ({ networkId, infuraId, alchemyId, provider, }: ProviderConfig) => SynthetixProvider; declare const getOptimismProvider: ({ networkId }: { networkId: number; }) => StaticJsonRpcProvider; /** * @dev if the new network is not added already, for instance in meta mask, this will throw an error. Call `wallet_addEthereumChain` * @param web3Provider * @param isOVM */ declare const handleSwitchChain: (web3Provider: Web3Provider, isOVM: boolean) => Promise; export { loadProvider, getOptimismProvider, handleSwitchChain }; export type { ProviderConfig, SynthetixProvider }; export default loadProvider; //# sourceMappingURL=index.d.ts.map