import { IJSONRPCNotification } from "./Request.js"; interface Arguments { readonly method: string; readonly params?: readonly unknown[] | object; } export type RequestArguments = Arguments; export type NotificationArguments = Arguments; export type JSONRPCMessage = RequestArguments | NotificationArguments; export interface IClient { request(args: RequestArguments): Promise; notify(args: NotificationArguments): Promise; close(): void; onNotification(callback: (data: IJSONRPCNotification) => void): void; }