import type { Writable, Readable } from "node:stream"; export declare class HermesRpc { private stdin; private nextId; private pending; private notifyCb?; private serverReqCb?; private buf; constructor(stdin: Writable, stdout: Readable); request(method: string, params: object): Promise; notify(method: string, params: object): void; onNotification(cb: (method: string, params: Record) => void): void; onServerRequest(cb: (method: string, params: Record) => unknown | Promise): void; rejectAll(err: Error): void; private onData; private handle; } //# sourceMappingURL=hermes-jsonrpc.d.ts.map