/**
 * Specifies request headers as per  https beta export interface JsonRpcRequest < MethodName = string , RequestParams = object > { remarks id : number ; /**
     * Spec version
     */ jsonrpc : '2.0' ; /**
     * Generic type of the request method
     */ method : MethodName ; /**
     * Request parameters
     */ params : RequestParams ; } /**
 * Specifies response headers as per  https beta export interface JsonRpcResponse < ResponseType = object > { remarks id : number ; /**
     * Spec version
     */ jsonrpc : '2.0' ; /**
     * The generic type of the response
     */ result : ResponseType ; } /**
 * Specifies error object as per  https beta export interface JsonRpcError < Code extends number , Message , Data = undefined > { /**
     * Error code
     */ code : Code ; /**
     * Error message
     */ message : Message ; /**
     * Error data
     */ data ? : Data ; } /**
 * Specifies response headers as per  https beta export interface JsonRpcErrorResponse < Error = any > { remarks id : number ; /**
     * Spec version
     */ jsonrpc : '2.0' ; /**
     * The generic type of the response
     */ error : Error ; } /**
 * Specifies notification headers as per  https remarks beta export interface JsonRpcNotification < NotificationName extends string , NotificationParams extends object > { /**
     * Spec version
     */ jsonrpc : '2.0' ; /**
     * Generic type of the Notification name
     */ method : NotificationName ; /**
     * Generic type of the Notification parameters
     */ params : NotificationParams ; } function isJsonRpc ( message ) { return typeof message === 'object' && message !== null && 'jsonrpc' in message ; } /**
 * Type guard for  JsonRpcRequest returns beta export function isJsonRpcRequest ( message ) { return ( isJsonRpc ( message ) && 'id' in message && 'params' in message && 'method' in message && 'jsonrpc' in message && message [ 'jsonrpc' ] === '2.0' ) ; } /**
 * Type guard for  JsonRpcNotification returns beta export function isJsonRpcNotification < Name extends string , Params extends object > ( message ) { return isJsonRpc ( message ) && 'method' in message && ! ( 'id' in message ) ; } /**
 * Type guard for  JsonRpcResponse returns beta export function isJsonRpcResponse < ResponseType = object > ( message ) { return isJsonRpc ( message ) && 'result' in message ; } /**
 * Type guard for  JsonRpcErrorResponse returns beta export function isJsonRpcErrorResponse < Code extends number , Message , Data = undefined > ( message ) { return isJsonRpc ( message ) && 'id' in message && 'error' in message ; }