export declare class JsonRpcError extends Error {
    readonly code?: number | undefined;
    readonly data?: any;
    constructor(message: string, code?: number | undefined, data?: any);
}
export declare class InvalidJsonRpcResponseError extends JsonRpcError {
    constructor(message: string, data?: any);
}
export interface JsonRpcRequest {
    jsonrpc: string;
    method: string;
    params: any[];
    id: number;
}
export interface JsonRpcResponse {
    jsonrpc: string;
    id: number;
    result?: any;
    error?: {
        code: number;
        message: string;
        data?: any;
    };
}
export declare function createJsonRpcPayload(method: string, params?: any[]): JsonRpcRequest;
export declare function checkError(msg?: JsonRpcResponse): void;
export declare function validateJsonRpcResponse(response: any): response is JsonRpcResponse | JsonRpcResponse[];
