import { ObservableQuery, QueryOptions } from "./query"; import { QuerySharedContext } from "./context"; export interface JsonRpcBatchRequest { method: string; params: unknown; id: string; } export interface JsonRpcBatchRequestError { code: number; message: string; data?: unknown; } /** * Observable query for batched JSON-RPC requests. * Manages an array of `JsonRpcBatchRequest` and returns a map of results keyed by request ID. * Per-request errors (when the batch HTTP call succeeds but individual calls fail) * are surfaced via `perRequestErrors`. */ export declare class ObservableJsonRpcBatchQuery extends ObservableQuery> { protected readonly requests: JsonRpcBatchRequest[]; protected _perRequestErrors: Record; constructor(sharedContext: QuerySharedContext, baseURL: string, url: string, requests: JsonRpcBatchRequest[], options?: Partial); get perRequestErrors(): Readonly>; protected getCacheKey(): string; protected fetchResponse(abortController: AbortController): Promise<{ headers: any; data: Record; }>; }