import { Event } from './Event'; import { Session, Connection } from '../..'; /** * Defines the following events: * - `connectionCreated`: dispatched by [[Session]] * - `connectionDestroyed`: dispatched by [[Session]] */ export declare class ConnectionEvent extends Event { /** * Connection object that was created or destroyed */ connection: Connection; /** * For 'connectionDestroyed' event: * - "disconnect" * - "networkDisconnect" * * For 'connectionCreated' empty string */ reason: string; /** * @hidden */ constructor(cancelable: boolean, target: Session, type: string, connection: Connection, reason: string); /** * @hidden */ callDefaultBehaviour(): void; }