import { Event } from './Event'; import { Session, Stream, Publisher } from '../..'; /** * Defines the following events: * - `streamCreated`: dispatched by [[Session]] and [[Publisher]] * - `streamDestroyed`: dispatched by [[Session]] and [[Publisher]] */ export declare class StreamEvent extends Event { /** * Stream object that was created or destroyed */ stream: Stream; /** * For 'streamDestroyed' event: * - "disconnect" * - "networkDisconnect" * - "unpublish" * * For 'streamCreated' empty string */ reason: string; /** * @hidden */ constructor(cancelable: boolean, target: Session | Publisher, type: string, stream: Stream, reason: string); /** * @hidden */ callDefaultBehaviour(): void; }