import { ZIMGeofencingType, ZIMLogConfig, ZIMCacheConfig, ZIMLoginConfig, ZIMMessage, ZIMMediaMessage, ZIMRoomInfo, ZIMGroupInfo, ZIMMediaFileType, ZIMMessageBase, ZIMMediaMessageBase, ZIMConversationType, ZIMConversationNotificationStatus, ZIMTokenRenewedResult, ZIMUsersInfoQueriedResult, ZIMUserNameUpdatedResult, ZIMUserExtendedDataUpdatedResult, ZIMRoomAdvancedConfig, ZIMRoomAttributesSetConfig, ZIMRoomAttributesDeleteConfig, ZIMRoomAttributesBatchOperationConfig, ZIMRoomMemberQueryConfig, ZIMRoomCreatedResult, ZIMRoomEnteredResult, ZIMRoomJoinedResult, ZIMRoomLeftResult, ZIMRoomAttributesBatchOperatedResult, ZIMRoomAttributesOperatedResult, ZIMRoomAttributesQueriedResult, ZIMRoomMemberQueriedResult, ZIMRoomOnlineMemberCountQueriedResult, ZIMRoomMemberAttributesSetConfig, ZIMRoomMembersAttributesOperatedResult, ZIMRoomMembersAttributesQueriedResult, ZIMRoomMemberAttributesQueryConfig, ZIMRoomMemberAttributesListQueriedResult, ZIMGroupAdvancedConfig, ZIMGroupMemberQueryConfig, ZIMGroupCreatedResult, ZIMGroupJoinedResult, ZIMGroupLeftResult, ZIMGroupDismissedResult, ZIMGroupInfoQueriedResult, ZIMGroupListQueriedResult, ZIMGroupNameUpdatedResult, ZIMGroupNoticeUpdatedResult, ZIMGroupMemberKickedResult, ZIMGroupMemberListQueriedResult, ZIMGroupMemberNicknameUpdatedResult, ZIMGroupMemberRoleUpdatedResult, ZIMGroupMemberInfoQueriedResult, ZIMGroupAttributesOperatedResult, ZIMGroupAttributesQueriedResult, ZIMGroupUsersInvitedResult, ZIMGroupOwnerTransferredResult, ZIMGroupMemberCountQueriedResult, ZIMConversationQueryConfig, ZIMConversationDeleteConfig, ZIMConversationListQueriedResult, ZIMConversationDeletedResult, ZIMConversationNotificationStatusSetResult, ZIMConversationUnreadMessageCountClearedResult, ZIMMessageSendConfig, ZIMMessageDeleteConfig, ZIMMessageQueryConfig, ZIMMessageSentResult, ZIMMediaMessageSentResult, ZIMMessageQueriedResult, ZIMMessageDeletedResult, ZIMMessageInsertedResult, ZIMMessageSendNotification, ZIMMediaMessageSendNotification, ZIMMediaDownloadingProgress, ZIMMediaDownloadedResult, ZIMCallInviteConfig, ZIMCallCancelConfig, ZIMCallAcceptConfig, ZIMCallRejectConfig, ZIMAppConfig, ZIMCallCancelSentResult, ZIMCallInvitationSentResult, ZIMCallAcceptanceSentResult, ZIMCallRejectionSentResult, ZIMUserAvatarUrlUpdatedResult, ZIMUsersInfoQueryConfig, ZIMGroupAvatarUrlUpdatedResult, ZIMConversationMessageReceiptReadSentResult, ZIMMessageReceiptsReadSentResult, ZIMMessageReceiptsInfoQueriedResult, ZIMMessageRevokedResult, ZIMGroupMessageReceiptMemberQueryConfig, ZIMMessageRevokeConfig, ZIMGroupMessageReceiptMemberListQueriedResult, ZIMConversationPinnedListQueriedResult, ZIMConversationPinnedStateUpdatedResult, ZIMRoomMembersQueriedResult, ZIMConversationQueriedResult, ZIMCallQuitConfig, ZIMCallQuitSentResult, ZIMCallEndConfig, ZIMCallEndSentResult, ZIMCallingInviteConfig, ZIMCallingInvitationSentResult, ZIMCallInvitationQueryConfig, ZIMCallInvitationListQueriedResult, ZIMConversationSearchConfig, ZIMConversationsSearchedResult, ZIMMessageSearchConfig, ZIMMessagesGlobalSearchedResult, ZIMMessagesSearchedResult, ZIMGroupSearchConfig, ZIMGroupsSearchedResult, ZIMGroupMemberSearchConfig, ZIMGroupMembersSearchedResult, ZIMMessageLocalExtendedDataUpdatedResult, ZIMMessageReactionAddedResult, ZIMMessageReactionDeletedResult, ZIMMessageReactionUserListQueriedResult, ZIMMessageReactionUserQueryConfig, ZIMCallJoinConfig, ZIMCallJoinSentResult, ZIMCombineMessage, ZIMCombineMessageDetailQueriedResult, ZIMConversationDraftSetResult, ZIMGroupMuteConfig, ZIMGroupMutedResult, ZIMGroupMemberMuteConfig, ZIMGroupMembersMutedResult, ZIMFriendAddConfig, ZIMFriendAddedResult, ZIMFriendApplicationSentResult, ZIMFriendApplicationSendConfig, ZIMFriendDeleteConfig, ZIMFriendsDeletedResult, ZIMFriendRelationCheckConfig, ZIMFriendsRelationCheckedResult, ZIMFriendAliasUpdatedResult, ZIMFriendAttributesUpdatedResult, ZIMFriendApplicationAcceptedResult, ZIMFriendApplicationAcceptConfig, ZIMFriendApplicationRejectConfig, ZIMFriendApplicationRejectedResult, ZIMFriendsInfoQueriedResult, ZIMFriendListQueryConfig, ZIMFriendListQueriedResult, ZIMFriendApplicationListQueryConfig, ZIMFriendApplicationListQueriedResult, ZIMBlacklistUsersAddedResult, ZIMBlacklistUsersRemovedResult, ZIMBlacklistCheckedResult, ZIMBlacklistQueryConfig, ZIMBlacklistQueriedResult, ZIMGroupJoinApplicationSendConfig, ZIMGroupJoinApplicationSentResult, ZIMGroupJoinApplicationAcceptConfig, ZIMGroupJoinApplicationAcceptedResult, ZIMGroupJoinApplicationRejectConfig, ZIMGroupJoinApplicationRejectedResult, ZIMGroupInviteApplicationSendConfig, ZIMGroupInviteApplicationsSentResult, ZIMGroupInviteApplicationAcceptConfig, ZIMGroupInviteApplicationAcceptedResult, ZIMGroupInviteApplicationRejectConfig, ZIMGroupInviteApplicationRejectedResult, ZIMGroupApplicationListQueryConfig, ZIMGroupApplicationListQueriedResult, ZIMGroupJoinMode, ZIMGroupJoinModeUpdatedResult, ZIMGroupBeInviteMode, ZIMGroupBeInviteModeUpdatedResult, ZIMGroupInviteMode, ZIMGroupInviteModeUpdatedResult, ZIMUserOfflinePushRule, ZIMUserOfflinePushRuleUpdatedResult, ZIMSelfUserInfoQueriedResult, ZIMRoomAllLeftResult, ZIMMessageExportConfig, ZIMMessageExportingProgress, ZIMMessageImportingProgress, ZIMMessageImportConfig, ZIMFileCacheQueryConfig, ZIMFileCacheQueriedResult, ZIMFileCacheClearConfig } from './ZIMDefines'; import { ZIMEventHandler } from './ZIMEventHandler'; export default class ZIM { private engine; private static _instatance; private constructor(); /** * Gets the SDK's version number. * * When the SDK is running, the developer finds that it does not match the expected situation and submits the problem and related logs to the ZEGO technical staff for locating. The ZEGO technical staff may need the information of the engine version to assist in locating the problem. * Developers can also collect this information as the version information of the engine used by the app, so that the SDK corresponding to each version of the app on the line. * @return {string} - SDK version */ static getVersion(): Promise; static setGeofencingConfig(areaList: number[], type: ZIMGeofencingType): Promise; /** * @deprecated * Deprecated since 2.3.0, please use another create API */ static create(appID: number): ZIM | null; static create(appConfig: ZIMAppConfig): ZIM | null; static getInstance(): ZIM; destroy(): void; static setLogConfig(config: ZIMLogConfig): void; static setCacheConfig(config: ZIMCacheConfig): void; on(type: K, listener: ZIMEventHandler[K]): void; off(type: K): void; uploadLog(): Promise; login(userID: string, config: ZIMLoginConfig): Promise; logout(): Promise; renewToken(token: string): Promise; updateUserName(userName: string): Promise; updateUserAvatarUrl(userAvatarUrl: string): Promise; updateUserExtendedData(extendedData: string): Promise; updateUserOfflinePushRule(offlinePushRule: ZIMUserOfflinePushRule): Promise; querySelfUserInfo(): Promise; queryUsersInfo(userIDs: string[], config: ZIMUsersInfoQueryConfig): Promise; queryConversation(conversationID: string, conversationType: ZIMConversationType): Promise; queryConversationList(config: ZIMConversationQueryConfig): Promise; queryConversationPinnedList(config: ZIMConversationQueryConfig): Promise; deleteConversation(conversationID: string, conversationType: ZIMConversationType, config: ZIMConversationDeleteConfig): Promise; deleteAllConversations(config: ZIMConversationDeleteConfig): Promise; deleteAllConversationMessages(config: ZIMMessageDeleteConfig): Promise; setConversationNotificationStatus(status: ZIMConversationNotificationStatus, conversationID: string, conversationType: ZIMConversationType): Promise; updateConversationPinnedState(isPinned: boolean, conversationID: string, conversationType: ZIMConversationType): Promise; clearConversationUnreadMessageCount(conversationID: string, conversationType: ZIMConversationType): Promise; setConversationDraft(draft: string, conversationID: string, conversationType: ZIMConversationType): Promise; sendMessage(message: ZIMMessageBase, toConversationID: string, conversationType: ZIMConversationType, config: ZIMMessageSendConfig, notification?: ZIMMessageSendNotification): Promise; clearConversationTotalUnreadMessageCount(): Promise; /** * @deprecated Replaced with sendMessage. */ sendPeerMessage(message: ZIMMessageBase, toUserID: string, config: ZIMMessageSendConfig): Promise; /** * @deprecated * Deprecated since 2.4.0, please use [sendMessage]. */ sendGroupMessage(message: ZIMMessageBase, toGroupID: string, config: ZIMMessageSendConfig): Promise; /** * @deprecated * Deprecated since 2.4.0, please use [sendMessage]. */ sendRoomMessage(message: ZIMMessageBase, toRoomID: string, config: ZIMMessageSendConfig): Promise; sendMediaMessage(message: ZIMMediaMessageBase, toConversationID: string, conversationType: ZIMConversationType, config: ZIMMessageSendConfig, notification?: ZIMMediaMessageSendNotification): Promise; deleteMessages(messageList: ZIMMessage[], conversationID: string, conversationType: ZIMConversationType, config: ZIMMessageDeleteConfig): Promise; deleteAllMessage(conversationID: string, conversationType: ZIMConversationType, config: ZIMMessageDeleteConfig): Promise; queryHistoryMessage(conversationID: string, conversationType: ZIMConversationType, config: ZIMMessageQueryConfig): Promise; downloadMediaFile(message: ZIMMediaMessage, fileType: ZIMMediaFileType, progress: ZIMMediaDownloadingProgress): Promise; insertMessageToLocalDB(message: ZIMMessageBase | ZIMMediaMessageBase, conversationID: string, conversationType: ZIMConversationType, senderUserID: string): Promise; updateMessageLocalExtendedData(localExtendedData: string, message: ZIMMessage): Promise; sendConversationMessageReceiptRead(conversationID: string, conversationType: ZIMConversationType): Promise; sendMessageReceiptsRead(messageList: ZIMMessage[], conversationID: string, conversationType: ZIMConversationType): Promise; queryMessageReceiptsInfo(messageList: ZIMMessage[], conversationID: string, conversationType: ZIMConversationType): Promise; queryGroupMessageReceiptReadMemberList(message: ZIMMessage, groupID: string, config: ZIMGroupMessageReceiptMemberQueryConfig): Promise; queryGroupMessageReceiptUnreadMemberList(message: ZIMMessage, groupID: string, config: ZIMGroupMessageReceiptMemberQueryConfig): Promise; revokeMessage(message: ZIMMessage, config: ZIMMessageRevokeConfig): Promise; queryCombineMessageDetail(message: ZIMCombineMessage): Promise; addMessageReaction(reactionType: string, message: ZIMMessage): Promise; deleteMessageReaction(reactionType: string, message: ZIMMessage): Promise; queryMessageReactionUserList(message: ZIMMessage, config: ZIMMessageReactionUserQueryConfig): Promise; createRoom(roomInfo: ZIMRoomInfo, config?: ZIMRoomAdvancedConfig): Promise; enterRoom(roomInfo: ZIMRoomInfo, config?: ZIMRoomAdvancedConfig): Promise; joinRoom(roomID: string): Promise; leaveRoom(roomID: string): Promise; queryRoomMemberList(roomID: string, config: ZIMRoomMemberQueryConfig): Promise; queryRoomMembers(userIDs: string[], roomID: string): Promise; queryRoomOnlineMemberCount(roomID: string): Promise; queryRoomAllAttributes(roomID: string): Promise; setRoomAttributes(roomAttributes: Record, roomID: string, config: ZIMRoomAttributesSetConfig): Promise; deleteRoomAttributes(keys: string[], roomID: string, config: ZIMRoomAttributesDeleteConfig): Promise; beginRoomAttributesBatchOperation(roomID: string, config: ZIMRoomAttributesBatchOperationConfig): void; endRoomAttributesBatchOperation(roomID: string): Promise; setRoomMembersAttributes(attributes: Record, userIDs: string[], roomID: string, config: ZIMRoomMemberAttributesSetConfig): Promise; queryRoomMembersAttributes(userIDs: string[], roomID: string): Promise; queryRoomMemberAttributesList(roomID: string, config: ZIMRoomMemberAttributesQueryConfig): Promise; leaveAllRoom(): Promise; createGroup(groupInfo: ZIMGroupInfo, userIDs: string[], config?: ZIMGroupAdvancedConfig): Promise; joinGroup(groupID: string): Promise; leaveGroup(groupID: string): Promise; dismissGroup(groupID: string): Promise; queryGroupList(): Promise; updateGroupNotice(groupNotice: string, groupID: string): Promise; updateGroupName(groupName: string, groupID: string): Promise; updateGroupAvatarUrl(groupAvatarUrl: string, groupID: string): Promise; queryGroupInfo(groupID: string): Promise; muteGroup(isMute: boolean, groupID: string, config: ZIMGroupMuteConfig): Promise; muteGroupMembers(isMute: boolean, userIDs: string[], groupID: string, config: ZIMGroupMemberMuteConfig): Promise; setGroupAttributes(groupAttributes: Record, groupID: string): Promise; deleteGroupAttributes(keys: string[], groupID: string): Promise; queryGroupAttributes(keys: string[], groupID: string): Promise; queryGroupAllAttributes(groupID: string): Promise; setGroupMemberNickname(nickname: string, forUserID: string, groupID: string): Promise; setGroupMemberRole(role: number, forUserID: string, groupID: string): Promise; transferGroupOwner(toUserID: string, groupID: string): Promise; queryGroupMemberInfo(userID: string, groupID: string): Promise; inviteUsersIntoGroup(userIDs: string[], groupID: string): Promise; kickGroupMembers(userIDs: string[], groupID: string): Promise; queryGroupMemberList(groupID: string, config: ZIMGroupMemberQueryConfig): Promise; queryGroupMemberCount(groupID: string): Promise; sendGroupJoinApplication(groupID: string, config: ZIMGroupJoinApplicationSendConfig): Promise; acceptGroupJoinApplication(userID: string, groupID: string, config: ZIMGroupJoinApplicationAcceptConfig): Promise; rejectGroupJoinApplication(userID: string, groupID: string, config: ZIMGroupJoinApplicationRejectConfig): Promise; sendGroupInviteApplications(userIDs: string[], groupID: string, config: ZIMGroupInviteApplicationSendConfig): Promise; acceptGroupInviteApplication(inviterUserID: string, groupID: string, config: ZIMGroupInviteApplicationAcceptConfig): Promise; rejectGroupInviteApplication(inviterUserID: string, groupID: string, config: ZIMGroupInviteApplicationRejectConfig): Promise; queryGroupApplicationList(config: ZIMGroupApplicationListQueryConfig): Promise; updateGroupJoinMode(mode: ZIMGroupJoinMode, groupID: string): Promise; updateGroupInviteMode(mode: ZIMGroupInviteMode, groupID: string): Promise; updateGroupBeInviteMode(mode: ZIMGroupBeInviteMode, groupID: string): Promise; callInvite(invitees: string[], config: ZIMCallInviteConfig): Promise; callCancel(invitees: string[], callID: string, config: ZIMCallCancelConfig): Promise; callAccept(callID: string, config: ZIMCallAcceptConfig): Promise; callReject(callID: string, config: ZIMCallRejectConfig): Promise; callQuit(callID: string, config: ZIMCallQuitConfig): Promise; callEnd(callID: string, config: ZIMCallEndConfig): Promise; callJoin(callID: string, config: ZIMCallJoinConfig): Promise; callingInvite(invitees: string[], callID: string, config: ZIMCallingInviteConfig): Promise; queryCallInvitationList(config: ZIMCallInvitationQueryConfig): Promise; searchLocalConversations(config: ZIMConversationSearchConfig): Promise; searchGlobalLocalMessages(config: ZIMMessageSearchConfig): Promise; searchLocalMessages(conversationID: string, conversationType: ZIMConversationType, config: ZIMMessageSearchConfig): Promise; searchLocalGroups(config: ZIMGroupSearchConfig): Promise; searchLocalGroupMembers(groupID: string, config: ZIMGroupMemberSearchConfig): Promise; addFriend(userID: string, config: ZIMFriendAddConfig): Promise; sendFriendApplication(userID: string, config: ZIMFriendApplicationSendConfig): Promise; deleteFriends(userIDs: string[], config: ZIMFriendDeleteConfig): Promise; checkFriendsRelation(userIDs: string[], config: ZIMFriendRelationCheckConfig): Promise; updateFriendAlias(friendAlias: string, userID: string): Promise; updateFriendAttributes(friendAttributes: Record, userID: string): Promise; acceptFriendApplication(userID: string, config: ZIMFriendApplicationAcceptConfig): Promise; rejectFriendApplication(userID: string, config: ZIMFriendApplicationRejectConfig): Promise; queryFriendsInfo(userIDs: string[]): Promise; queryFriendList(config: ZIMFriendListQueryConfig): Promise; queryFriendApplicationList(config: ZIMFriendApplicationListQueryConfig): Promise; addUsersToBlacklist(userIDs: string[]): Promise; removeUsersFromBlacklist(userIDs: string[]): Promise; checkUserIsInBlacklist(userID: string): Promise; queryBlacklist(config: ZIMBlacklistQueryConfig): Promise; exportLocalMessages(folderPath: string, config: ZIMMessageExportConfig, progress?: ZIMMessageExportingProgress): Promise; importLocalMessages(folderPath: string, config: ZIMMessageImportConfig, progress?: ZIMMessageImportingProgress): Promise; queryLocalFileCache(config: ZIMFileCacheQueryConfig): Promise; clearLocalFileCache(config: ZIMFileCacheClearConfig): Promise; }