import { Endpoint } from "./endpoint.mjs"; import { ReceivableEndpoint } from "./receivable-endpoint.mjs"; /** * Multiple connection endpoint. * Can hold several connections. */ export declare class MultiConnectionEndpoint extends ReceivableEndpoint { #private; constructor(name: any, owner: any, options: any); /** * Deliver connection state. * @param {Endpoint} other * @return {any} our state for the connection to other */ getConnectionState(other: Endpoint): any; /** * Set connection state. * @param {Endpoint} other * @param {any} state for the connection to other */ setConnectionState(other: Endpoint, state: any): void; addConnection(other: any, backpointer: any): 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 | null): void; /** * Check connectivity. * @param {Endpoint} other * @return {boolean} true if we are connected with other */ isConnected(other: Endpoint): boolean; /** * All connections */ connections(): Generator; }