import { MatrixEvent } from "./Event" ; category see RoomEvent export interface TypicalUnsigned { /**
     * The age of this event in seconds.
     */ age ? : number ; /**
     * Other properties which may be included.
     */ [ prop ] : any ; } category export interface RoomEventContent { } category export class RoomEvent < T extends ( Object | unknown ) = unknown > extends MatrixEvent < T > { constructor ( protected event ) { super ( event ) ; } /**
     * The event ID of this event.
     */ public get eventId ( ) : string { return this . event [ 'event_id' ] ; } /**
     * The timestamp in milliseconds this event was sent.
     */ public get timestamp ( ) : number { return this . event [ 'origin_server_ts' ] ; } /**
     * The unsigned content for this event. May have no properties.
     */ public get unsigned ( ) : TypicalUnsigned { return this . event [ 'unsigned' ] || { } ; } } category export class StateEvent < T extends ( Object | unknown ) = unknown > extends RoomEvent < T > { constructor ( event ) { super ( event ) ; } /**
     * The state key for this event. May be an empty string.
     */ public get stateKey ( ) : string { return this . event [ 'state_key' ] ; } /**
     * The previous content for this state event. Will be an empty
     * object if there is no previous content.
     */ public get previousContent ( ) : T { return this . unsigned [ 'prev_content' ] || this . event [ 'prev_content' ] || { } ; } }