import { ErrorResponse, JsonRpcError, JsonRpcRequest, JsonRpcResult } from "./types"; export declare function payloadId(entropy?: number): number; export declare function getBigIntRpcId(entropy?: number): bigint; export declare function formatJsonRpcRequest(method: string, params: T, id?: number): JsonRpcRequest; export declare function formatJsonRpcResult(id: number, result: T): JsonRpcResult; export declare function formatJsonRpcError(id: number, error?: string | ErrorResponse, data?: string): JsonRpcError; export declare function formatErrorMessage(error?: string | ErrorResponse, data?: string): ErrorResponse; //# sourceMappingURL=format.d.ts.map