import { FullConfig, JsonRpcRequest, JsonRpcResponse, Provider, SingleOrBatchRequest, SingleOrBatchResponse } from "../types"; import { AlchemySendJsonRpcFunction } from "./alchemySend"; export interface JsonRpcPayloadSender { sendJsonRpcPayload: SendJsonRpcPayloadFunction; setWriteProvider(writeProvider: Provider | null | undefined): void; } export interface SendJsonRpcPayloadFunction { (payload: JsonRpcRequest): Promise; (payload: SingleOrBatchRequest): Promise; } export declare function makeJsonRpcPayloadSender(alchemySendJsonRpc: AlchemySendJsonRpcFunction, config: FullConfig): JsonRpcPayloadSender;