import { StateEvent } from "./RoomEvent" ; category see CreateEventContent export interface PreviousRoomInfo { /**
     * The old room ID.
     */ room_id : string ; /**
     * The last known event ID in the old room.
     */ event_id : string ; } category see CreateEvent export interface CreateEventContent { /**
     * The user ID who created the room.
     */ creator : string ; /**
     * Whether or not this room is federated. Default true.
     */ "m.federate" ? : boolean ; /**
     * The version of the room. Default "1".
     */ room_version ? : string ; /**
     * Information about the old room.
     */ predecessor ? : PreviousRoomInfo ; } category export class CreateEvent extends StateEvent < CreateEventContent > { constructor ( event ) { super ( event ) ; } /**
     * The user ID who created the room.
     */ public get creator ( ) : string { return this . content . creator || this . sender ; } /**
     * The version of the room. Defaults to "1".
     */ public get version ( ) : string { return this . content . room_version || "1" ; } /**
     * Whether or not the room is federated. Default true (federated).
     */ public get federated ( ) : boolean { return this . content [ 'm.federate' ] !== false ; } }