import { MessengerOptions } from "./types.js"; import { JsonRpc } from "../../core/json-rpc.js"; import { Remote } from "../../core/remote-proxy.js"; import { Endpoint, Fns } from "../../core/types.js"; /** * Establish a renraku remote that communicates over the given conduit. * - supports two-way or one-way communication * - you can use a messenger to call a remote messenger * - you can use a messenger to respond to incoming requests */ export declare class Messenger { #private; private options; remote: Remote; remoteEndpoint: Endpoint; dispose: import("@e280/stz").Disposer; constructor(options: MessengerOptions); recv(incoming: JsonRpc.Bidirectional): Promise; }