import { Endpoint } from "./endpoint.mjs"; import { ReceivableEndpoint } from "./receivable-endpoint.mjs"; /** * Sending Endpoint. * Can only hold one connection. * Back connections to any further endpoints will not be established * @param {string} name endpoint name * @param {Object} owner of the endpoint (service) * @param {Object|undefined} options * @param {Endpoint|undefined} [options.connected] where te requests are delivered to * @param {Function|undefined} [options.didConnect] called after receiver is present */ export declare class SendEndpoint extends ReceivableEndpoint { #private; /** * @param {string} name endpoint name * @param {Object} owner of the endpoint (service) * @param {Object} options * @param {Endpoint} [options.connected] */ constructor(name: string, owner: Object, options: { connected?: Endpoint; }); /** * We are always _out_ * @return {boolean} always true */ get isOut(): boolean; get isOpen(): boolean; getConnectionState(other: any): any; setConnectionState(other: any, state: any): void; /** * Add a connection. * @param {Endpoint} other * @param {boolean} [backpointer] true if this is the call form back call from the other side */ addConnection(other: Endpoint, backpointer?: boolean): void; /** * Actually stop the communication. * @param {Endpoint} other * @param {boolean} [backpointer] true if this is the call form back call from the other side */ removeConnection(other: Endpoint, backpointer?: boolean): void; connections(): Generator; send(...args: any[]): Promise; }