export type Id = string | number; export interface Request { jsonrpc: "2.0"; id: Id; method: string; params: T; } export interface Notification { jsonrpc: "2.0"; method: string; params?: T; } export type Response = { jsonrpc: "2.0"; id: Id; } & ({ error: Error; } | { result: T; }); export interface Error { code: number; message?: string; data?: E; } /** Sends the jsonrpc 'params' as a single 'param' object (no array support). */ export declare function postObject(url: string, method: string, param?: any): Promise;