import { providers } from "ethers"; export type Config = { retriable?: boolean; retries?: number; timeout?: number; }; export declare class ManagerStaticJsonRpcProvider extends providers.StaticJsonRpcProvider { providerList: providers.StaticJsonRpcProvider[]; retriable: boolean; retries: number; currentIndex: number; error: Map; constructor(rpcs: string[], chainId: string, config?: Config); send(method: string, params: Array, retries?: number, requestId?: string): Promise; private selectProvider; /** * validate that retries is equal to the length of rpc * to ensure rpc are called at least one time * * if that's the case, and we fail in all the calls * then throw the internal saved error */ private validateRetries; }