/** * The enumeration of chat room role types. */ export declare enum ChatRoomPermissionType { /** * Unknown. */ None = -1, /** * The chat room member. */ Member = 0, /** * The chat room admin. */ Admin = 1, /** * The chat room owner. */ Owner = 2 } /** * The room permission type convert. * * @param params The integer representing permission type. * @returns The room permission type. */ export declare function ChatRoomPermissionTypeFromNumber(params: number): ChatRoomPermissionType; /** * The room permission type convert. * * @param params The room permission type. * @returns The string representing room permission type. */ export declare function ChatRoomPermissionTypeToString(params: ChatRoomPermissionType): string; /** * The chat room instance class. * To get the correct value, ensure that you call {@ link ChatRoomManager#fetchChatRoomInfoFromServer(String)} before calling this method. */ export declare class ChatRoom { /** * The chat room ID. */ roomId: string; /** * The chat room name from the memory. */ name?: string; /** * The chat room description from the memory. */ description?: string; /** * The chat room owner ID. If this method returns an empty string, the SDK fails to get chat room details. */ owner: string; /** * The chat room announcement in the chat room from the memory. */ announcement?: string; /** * The number of online members from the memory. */ memberCount?: string; /** * The maximum number of members in the chat room from the memory, which is set/specified when the chat room is created. */ maxUsers?: string; /** * The chat room admin list. */ adminList?: Array; /** * The member list. */ memberList?: Array; /** * The chat room block list. */ blockList?: Array; /** * The mute list of the chat room. */ muteList?: Array; /** * Whether all members are muted in the chat room from the memory. */ isAllMemberMuted?: boolean; /** * The current user's role in the chat room. The role types: {@link ChatRoomPermissionType}. */ permissionType: ChatRoomPermissionType; constructor(params: { roomId: string; name?: string; description?: string; owner: string; announcement?: string; memberCount?: string; maxUsers?: string; adminList?: Array; memberList?: Array; blockList?: Array; muteList?: Array; isAllMemberMuted?: boolean; permissionType: number; }); }