import { ethers } from 'ethers'; import { JsonRpcMiddleware, JsonRpcMiddlewareHandler, EIP1193Provider, JsonRpcSender } from "./json-rpc/index.js"; export interface JsonRpcProviderOptions { chainId?: number; middlewares?: Array; blockCache?: boolean | string[]; } export declare class JsonRpcProvider extends ethers.JsonRpcProvider implements EIP1193Provider, JsonRpcSender { #private; url: string | ethers.FetchRequest | undefined; constructor(url: string | ethers.FetchRequest | undefined, options?: JsonRpcProviderOptions, jsonRpcApiProviderOptions?: ethers.JsonRpcApiProviderOptions); request(request: { method: string; params?: any[]; chainId?: number; }): Promise; send(method: string, params?: any[] | Record, chainId?: number): Promise; getNetwork(): Promise; private fetch; }