import { Event } from './Event'; import { Session } from '../../OpenVidu/Session'; /** * Defines event `sessionDisconnected` dispatched by [[Session]] after the local user has left the session. This is the local version of the `connectionDestroyed` event, which is only dispatched by remote users */ export declare class SessionDisconnectedEvent extends Event { /** * - "disconnect": you have called `Session.disconnect()` * - "forceDisconnectByUser": you have been evicted from the Session by other user calling `Session.forceDisconnect()` * - "forceDisconnectByServer": you have been evicted from the Session by the application * - "sessionClosedByServer": the Session has been closed by the application * - "networkDisconnect": your network connection has dropped. Before a SessionDisconnectedEvent with this reason is triggered, * Session object will always have previously dispatched a `reconnecting` event. If the reconnection process succeeds, * Session object will dispatch a `reconnected` event. If it fails, Session object will dispatch a SessionDisconnectedEvent * with reason "networkDisconnect" */ reason: string; /** * @hidden */ constructor(target: Session, reason: string); /** * @hidden */ callDefaultBehavior(): void; }