import { JsonRpcPayload, JsonRpcResponse, JsonRpcResponseWithResult, JsonRpcResponseWithError, JsonRpcOptionalRequest, JsonRpcBatchRequest, JsonRpcNotification, JsonRpcRequest, JsonRpcBatchResponse, JsonRpcSubscriptionResult } from '@theqrl/web3-types'; export declare const isResponseRpcError: (rpcError: JsonRpcResponseWithError) => boolean; export declare const isResponseWithResult: (response: JsonRpcResponse) => response is JsonRpcResponseWithResult; export declare const isResponseWithError: (response: JsonRpcResponse) => response is JsonRpcResponseWithError; export declare const isResponseWithNotification: (response: JsonRpcNotification | JsonRpcSubscriptionResult) => response is JsonRpcNotification; export declare const isSubscriptionResult: (response: JsonRpcNotification | JsonRpcSubscriptionResult) => response is JsonRpcSubscriptionResult; export declare const validateResponse: (response: JsonRpcResponse) => boolean; export declare const isValidResponse: (response: JsonRpcResponse) => boolean; export declare const isBatchResponse: (response: JsonRpcResponse) => response is JsonRpcBatchResponse; /** * Optionally use to make the jsonrpc `id` start from a specific number. * Without calling this function, the `id` will be filled with a Uuid. * But after this being called with a number, the `id` will be a number staring from the provided `start` variable. * However, if `undefined` was passed to this function, the `id` will be a Uuid again. * @param start - a number to start incrementing from. * Or `undefined` to use a new Uuid (this is the default behavior) */ export declare const setRequestIdStart: (start: number | undefined) => void; export declare const toPayload: (request: JsonRpcOptionalRequest) => JsonRpcPayload; export declare const toBatchPayload: (requests: JsonRpcOptionalRequest[]) => JsonRpcBatchRequest; export declare const isBatchRequest: (request: JsonRpcBatchRequest | JsonRpcRequest | JsonRpcOptionalRequest) => request is JsonRpcBatchRequest; //# sourceMappingURL=json_rpc.d.ts.map