import { ResponseFormatter, IResponse, JSONRPCErrorType, FormatResponseJSONRPCDataOptionsType, TranslateFunctionType } from '../types'; export declare class JSONRPCResponseFormatter extends ResponseFormatter { result?: any; error?: JSONRPCErrorType; translateFunction?: TranslateFunctionType; isErrorTextStraightToOutput?: boolean; statusCode: number; responseHeaders: Record; constructor({ error, result, isErrorTextStraightToOutput, translateFunction, statusCode, responseHeaders, }: FormatResponseJSONRPCDataOptionsType); getAdditionalErrors: (error?: JSONRPCErrorType | undefined) => Record | null; getFormattedResponse: () => IResponse; }