import { AbstractJsonRpc, JsonRpc } from './JsonRpc'; import { Batch, RawBatchResponse } from "./Batch"; /** * JsonRpc wrapper around several underlying JsonRpc deletes. This class executes underlying * JsonRpc one by one until it finds one that processed batch without error. If no working JsonRpc * was found it fails with last recorder error */ export default class RotatingJsonRpc extends AbstractJsonRpc implements JsonRpc { delegates: Array; constructor(...delegates: Array); execute(batch: Batch): Promise; }