import type { StateEvent } from "../storage/types"; export declare function getPrevContentFromStateEvent(event: any): any; export declare const REDACTION_TYPE = "m.room.redaction"; export declare function isRedacted(event: any): boolean; export type UnsentStateEvent = { type: string; state_key: string; content: Record; }; export declare enum RoomStatus { None = 1, BeingCreated = 2, Invited = 4, Joined = 8, Replaced = 16, Archived = 32 } export declare enum RoomVisibility { DirectMessage = 0, Private = 1, Public = 2 } export declare enum RoomType { World = 0, Profile = 1 } type RoomResponse = { state?: { events?: Array; }; timeline?: { events?: Array; }; }; /** iterates over any state events in a sync room response, in the order that they should be applied (from older to younger events) */ export declare function iterateResponseStateEvents(roomResponse: RoomResponse, callback: (StateEvent: any) => Promise | void): Promise | void; export declare function tests(): { "test iterateResponseStateEvents with both state and timeline sections": (assert: any) => void; "test iterateResponseStateEvents with empty response": (assert: any) => void; }; export {};