import { DisconnectReason } from "@skeldjs/constant"; import { CancelableEvent } from "@skeldjs/events"; import { Room } from "../../../worker"; /** * Emitted just before a room is destroyed. * * See {@link RoomDestroyEvent} to guarantee that the room has been destroyed * and cannot be brought back. */ export declare class RoomBeforeDestroyEvent extends CancelableEvent { /** * The room that is being destroyed. */ readonly room: Room; /** * Reason for why the room will be destroyed. */ readonly reason: DisconnectReason; static eventName: "room.beforedestroy"; eventName: "room.beforedestroy"; constructor( /** * The room that is being destroyed. */ room: Room, /** * Reason for why the room will be destroyed. */ reason: DisconnectReason); }