import { JsonRpcError, JsonRpcRequestPayload, JsonRpcResponsePayload } from '../type-defs'; /** * Formats and standardizes a JSON RPC 2.0 response from a number of potential * sources. */ export declare class JsonRpcResponse { private readonly _jsonrpc; private readonly _id; private _result?; private _error?; constructor(responsePayload: JsonRpcResponsePayload); constructor(response: JsonRpcResponse); constructor(requestPayload: JsonRpcRequestPayload); applyError(error?: JsonRpcError | null): this; applyResult(result?: ResultType | null): this; get hasError(): boolean; get hasResult(): boolean; get payload(): JsonRpcResponsePayload; } export interface StandardizedResponse { id?: string | number; response?: JsonRpcResponse; }