@class NSMutableDictionary, NSUserActivity, NSDictionary, NSObject, IMContactStore, IMSharedWithYouManager, NSMutableArray, IMDaemonController, NSString, NSSet, IMDaemonQueryController, IMTimer, NSArray, TUConversationManager; @protocol OS_dispatch_queue, IMDaemonProtocol; @interface IMChatRegistry : NSObject <TUConversationManagerDelegate> @property (class, readonly) BOOL hasInitializedChatFiltering; @property (class, readonly) IMChatRegistry *sharedRegistry; @property (class, readonly) IMChatRegistry *sharedRegistryIfAvailable; @property (readonly, nonatomic) NSArray *allExistingChats; @property (readonly, nonatomic) unsigned long long numberOfExistingChats; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly, copy, nonatomic) NSArray *cachedChats; @property (readonly, nonatomic) unsigned long long numberOfCachedChats; @property (readonly, nonatomic) BOOL blackholedChatsExist; @property (retain, nonatomic) NSObject<OS_dispatch_queue> *contactStoreQueue; @property (nonatomic) BOOL filterediMessageChatsExist; @property (retain, nonatomic) IMContactStore *contactStore; @property (nonatomic, setter=_setPostMessageSentNotifications:) BOOL _postMessageSentNotifications; @property (nonatomic, setter=_setDefaultNumberOfMessagesToLoad:) unsigned long long _defaultNumberOfMessagesToLoad; @property (retain, nonatomic, setter=_setSimulatedChats:) NSArray *simulatedChats; @property (readonly, nonatomic) BOOL _isLoading; @property (retain, nonatomic) NSArray *preExistingAllChats; @property (readonly, nonatomic) TUConversationManager *conversationManager; @property (retain, nonatomic) NSString *historyModificationStamp; @property (retain, nonatomic) IMTimer *markAsReadTimer; @property (nonatomic) double timerStartTimeInterval; @property (nonatomic) BOOL loading; @property (nonatomic) BOOL daemonHadTerminated; @property (nonatomic) BOOL wantsHistoryReload; @property (nonatomic) BOOL isInternalInstall; @property (retain, nonatomic) NSMutableDictionary *chatsBeingLoadedMap; @property (retain, nonatomic) NSMutableDictionary *chatPersonIDToChatMap; @property (readonly, nonatomic) id<IMDaemonProtocol> remoteDaemon; @property (readonly, nonatomic) IMDaemonController *daemonController; @property (readonly, nonatomic) IMDaemonQueryController *daemonQueryController; @property (readonly, nonatomic) IMSharedWithYouManager *sharedWithYouManager; @property (readonly, nonatomic) NSMutableArray *allChatsInProcess; @property (readonly, nonatomic) NSMutableArray *cachedChatsInThreadNameMap; @property (readonly, nonatomic) NSMutableDictionary *chatGUIDToChatMap; @property (readonly, nonatomic) NSMutableDictionary *chatGUIDToCurrentThreadMap; @property (readonly, nonatomic) NSMutableDictionary *chatGUIDToInfoMap; @property (readonly, nonatomic) NSMutableDictionary *threadNameToChatMap; @property (readonly, nonatomic) NSMutableDictionary *simulatedChatGUIDToChatMap; @property (readonly, nonatomic) NSMutableDictionary *chatGUIDToiMessageSentOrReceivedMap; @property (copy, nonatomic) NSDictionary *filterCategoryToEarliestInitiallyFetchedLastMessageDate; @property (readonly, nonatomic) NSMutableDictionary *groupIDToChatMap; @property (readonly, nonatomic) NSMutableDictionary *groupParticipantToChatsMap; @property (retain, nonatomic) NSUserActivity *userActivity; @property (nonatomic) BOOL processingChatCacheMiss; @property (nonatomic) BOOL blackholedChatsExist; @property (nonatomic, getter=isFirstLoad) BOOL firstLoad; @property (nonatomic) unsigned long long unreadCount; @property (nonatomic) long long lastFailedMessageDate; @property (retain, nonatomic) NSSet *registryChangeHistoryChatsToUnregister; @property (retain, nonatomic) NSSet *registryChangeHistoryChatsToObserve; + (id)sharedInstance; + (id)performanceLogHandle; + (void)setMessageClass:(Class)a0; + (void)setHasInitializedChatFiltering:(BOOL)a0; + (Class)messageClass; - (id)performanceLogHandle; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 invitationReceived:(id)a4; - (id)init; - (void)dealloc; - (id)_cachedChatWithGUID:(id)a0; - (void)conversationManager:(id)a0 stateChangedForConversation:(id)a1; - (id)existingChatWithGUID:(id)a0; - (void).cxx_destruct; - (id)_activeTUConversations; - (id)generateUnusedChatIdentifierForGroupChatWithAccount:(id)a0; - (void)setupComplete; - (void)setupComplete:(BOOL)a0 info:(id)a1; - (id)existingChatWithChatIdentifier:(id)a0; - (void)_handleAddressBookChange:(id)a0; - (void)_handleAvailabilityChangedNotification:(id)a0; - (void)_handleAvailabilityInvitationReceivedNotification:(id)a0; - (void)_handleAvailabilityStateChangedNotification:(id)a0; - (void)_handleChatParticipantsDidChange:(id)a0; - (void)_loadChatsFilteredUsingPredicate:(id)a0 lastMessageOlderThan:(id)a1 limit:(unsigned long long)a2 waitForReply:(BOOL)a3 completionHandler:(id /* block */)a4; - (id)allGUIDsForChat:(id)a0; - (id)chatForFaceTimeConversation:(id)a0; - (id)chatForIMHandle:(id)a0; - (id)chatForURL:(id)a0 outMessageText:(id *)a1 outRecipientIDs:(id *)a2 outService:(id *)a3 outMessageGUID:(id *)a4; - (id)chatForURL:(id)a0 outMessageText:(id *)a1 outRecipientIDs:(id *)a2 outService:(id *)a3 outMessageGUID:(id *)a4 presentOverlay:(BOOL *)a5; - (id)chatForURL:(id)a0 outMessageText:(id *)a1 outRecipientIDs:(id *)a2 outService:(id *)a3 outMessageGUID:(id *)a4 presentOverlay:(BOOL *)a5 outSIMID:(id *)a6; - (id)chatWithHandle:(id)a0 lastAddressedHandle:(id)a1 lastAddressedSIMID:(id)a2; - (id)chatWithHandles:(id)a0; - (id)chatWithHandles:(id)a0 displayName:(id)a1 joinedChatsOnly:(BOOL)a2 lastAddressedHandle:(id)a3 lastAddressedSIMID:(id)a4; - (void)enumerateAllChatsAndAttachmentSizesWithOptions:(unsigned long long)a0 usingBlock:(id /* block */)a1; - (id)existingChatForAddresses:(id)a0 allowRetargeting:(BOOL)a1 bestHandles:(id *)a2; - (id)existingChatForContacts:(id)a0 bestHandles:(id *)a1; - (id)existingChatForIMHandle:(id)a0 allowRetargeting:(BOOL)a1 fixChatHandle:(BOOL)a2; - (id)existingChatWithAddresses:(id)a0 allowAlternativeService:(BOOL)a1 bestHandles:(id *)a2; - (id)existingChatWithDeviceIndependentID:(id)a0; - (id)existingChatWithDisplayName:(id)a0; - (id)existingChatWithGroupID:(id)a0; - (id)existingChatWithHandle:(id)a0; - (id)existingChatWithHandle:(id)a0 allowAlternativeService:(BOOL)a1; - (id)existingChatWithHandles:(id)a0 allowAlternativeService:(BOOL)a1 groupID:(id)a2 displayName:(id)a3 joinedChatsOnly:(BOOL)a4; - (id)existingChatWithPersonID:(id)a0; - (id)existingChatWithPinningIdentifier:(id)a0; - (id)existingConversationForFaceTimeConversationUUID:(id)a0; - (id)existingConversationForTelephonyConversationUUID:(id)a0; - (id)messagesURLWithChat:(id)a0 orHandles:(id)a1 withMessageText:(id)a2; - (void)moveMessagesInChatsToRecentlyDeleted:(id)a0 deleteDate:(id)a1 synchronously:(BOOL)a2 completionHandler:(id /* block */)a3; - (void)permanentlyDeleteRecoverableMessagesInChats:(id)a0 synchronously:(BOOL)a1 completionHandler:(id /* block */)a2; - (void)recoverMessagesForChats:(id)a0 synchronously:(BOOL)a1 completionHandler:(id /* block */)a2; - (void)setUserActivityForChat:(id)a0 orHandles:(id)a1; - (id)unblackholeAndLoadChatWithIMHandles:(id)a0; - (void)updateEarliestMessageDateForChats:(id)a0 completion:(id /* block */)a1; - (void)updateRecoverableMessagesMetadataSynchronously:(BOOL)a0 completionHandler:(id /* block */)a1; - (void)updateRecoverableMessagesMetadataSynchronously:(BOOL)a0 loadChats:(BOOL)a1 completionHandler:(id /* block */)a2; - (void)conversationManager:(id)a0 activeRemoteParticipantsChangedForConversation:(id)a1; - (void)conversationManager:(id)a0 activitySessionsChangedForConversation:(id)a1; - (void)conversationManager:(id)a0 remoteMembersChangedForConversation:(id)a1; - (void)conversationManager:(id)a0 removedActiveConversation:(id)a1; - (void)chat:(id)a0 lastAddressedSIMIDUpdated:(id)a1; - (void)_automation_markAsReadQuery:(id)a0 finishedWithResult:(BOOL)a1; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 chatPersonCentricID:(id)a4 member:(id)a5 statusChanged:(int)a6; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 error:(id)a4; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 groupID:(id)a4 chatPersonCentricID:(id)a5 initialEmergencyQuestionnaireReceived:(id)a6; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 groupID:(id)a4 chatPersonCentricID:(id)a5 messageReceived:(id)a6; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 groupID:(id)a4 chatPersonCentricID:(id)a5 messageSent:(id)a6; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 groupID:(id)a4 chatPersonCentricID:(id)a5 messagesReceived:(id)a6 messagesComingFromStorage:(BOOL)a7; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 groupID:(id)a4 chatPersonCentricID:(id)a5 statusChanged:(int)a6 handleInfo:(id)a7; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 messageUpdated:(id)a4; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 messageUpdated:(id)a4 suppressNotification:(BOOL)a5; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 messagesUpdated:(id)a4; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 notifySentMessage:(id)a4 sendTime:(id)a5; - (void)account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 updateProperties:(id)a4; - (void)attachmentQuery:(id)a0 chatID:(id)a1 services:(id)a2 finishedWithResult:(id)a3; - (void)blackholedChatsExist:(BOOL)a0; - (void)chat:(id)a0 chatPersonCentricID:(id)a1 displayNameUpdated:(id)a2; - (void)chat:(id)a0 chatPersonCentricID:(id)a1 displayNameUpdated:(id)a2 sender:(id)a3; - (void)chat:(id)a0 engramIDUpdated:(id)a1; - (void)chat:(id)a0 isDeletingIncomingMessagesUpdated:(BOOL)a1; - (void)chat:(id)a0 isFilteredUpdated:(long long)a1; - (void)chat:(id)a0 isRecoveredUpdated:(BOOL)a1; - (void)chat:(id)a0 lastAddressedHandleUpdated:(id)a1; - (void)chat:(id)a0 lastMessageTimeStampOnLoadUpdated:(double)a1; - (void)chat:(id)a0 nicknamesUpdated:(id)a1; - (void)chat:(id)a0 propertiesUpdated:(id)a1; - (void)chat:(id)a0 uncachedAttachmentCountUpdated:(id)a1; - (void)chat:(id)a0 updated:(id)a1; - (void)chatLoadedWithChatIdentifier:(id)a0 chats:(id)a1; - (void)chatsNeedRemerging:(id)a0 groupedChats:(id)a1; - (void)downloadedPurgedAssetBatchForChatIDs:(id)a0 completedTransferGUIDs:(id)a1; - (void)engroupParticipantsUpdatedForChat:(id)a0; - (void)finishedDownloadingPurgedAssetsForChatIDs:(id)a0; - (void)forcedReloadingChatRegistryWithQueryID:(id)a0; - (void)frequentRepliesQuery:(id)a0 chatID:(id)a1 services:(id)a2 finishedWithResult:(id)a3 limit:(long long)a4; - (void)groupPhotoUpdatedForChatIdentifier:(id)a0 style:(unsigned char)a1 account:(id)a2 userInfo:(id)a3; - (void)historicalMessageGUIDsDeleted:(id)a0 chatGUIDs:(id)a1 queryID:(id)a2; - (void)historyQuery:(id)a0 chatID:(id)a1 services:(id)a2 finishedWithResult:(id)a3 limit:(long long)a4; - (void)isDownloadingQuery:(id)a0 chatID:(id)a1 services:(id)a2 finishedWithResult:(BOOL)a3; - (void)lastFailedMessageDateChanged:(long long)a0; - (void)leftChat:(id)a0; - (void)loadedChats:(id)a0 queryID:(id)a1; - (void)loadedRecoverableMessagesMetadata:(id)a0 queryID:(id)a1; - (void)markAsSpamQuery:(id)a0 chatID:(id)a1 services:(id)a2 finishedWithResult:(id)a3; - (void)markedAsReadForMessageGUID:(id)a0 success:(BOOL)a1 queryID:(id)a2; - (void)movedMessagesToRecentlyDeletedForChatsWithGUIDs:(id)a0 queryID:(id)a1; - (void)movedMessagesToRecentlyDeletedWithQueryID:(id)a0; - (void)pagedHistoryQuery:(id)a0 chatID:(id)a1 services:(id)a2 numberOfMessagesBefore:(long long)a3 numberOfMessagesAfter:(long long)a4 finishedWithResult:(id)a5 hasMessagesBefore:(BOOL)a6 hasMessagesAfter:(BOOL)a7; - (void)permanentlyDeletedMessagesInChatsWithDeletedChatGUIDs:(id)a0; - (void)permanentlyDeletedMessagesInChatsWithDeletedChatGUIDs:(id)a0 queryID:(id)a1; - (void)permanentlyDeletedRecoverableMessagesForChatsWithGUIDs:(id)a0 deletedChatGUIDs:(id)a1; - (void)previouslyBlackholedChatLoadedWithChatIdentifier:(id)a0 chats:(id)a1; - (void)previouslyBlackholedChatLoadedWithHandleIDs:(id)a0 chat:(id)a1; - (void)recoveredMessagesFromRecentlyDeletedForChatsWithGUIDs:(id)a0; - (void)recoveredMessagesWithQueryID:(id)a0; - (void)screenTimeEnablementChanged:(BOOL)a0; - (void)service:(id)a0 chat:(id)a1 style:(unsigned char)a2 messagesUpdated:(id)a3; - (void)uncachedAttachmentCountQuery:(id)a0 chatID:(id)a1 services:(id)a2 finishedWithResult:(id)a3; - (void)unreadCountChanged:(long long)a0; - (void)_chat:(id)a0 setValue:(id)a1 forChatProperty:(id)a2; - (id)_existingChatForTUConversation:(id)a0; - (id)_participantsForChatDictionary:(id)a0; - (id)chatWithHandle:(id)a0; - (id)initAsListener:(BOOL)a0; - (void)_chat:(id)a0 updateLastAddressedSIMID:(id)a1; - (void)_chat_isDownloadingPurgedAssetsForChat:(id)a0 queryID:(id)a1 loadImmediately:(BOOL)a2; - (id)_processLoadedChatDictionaries:(id)a0; - (id)chatsWithMyself; - (void)unregisterChat:(id)a0; - (void)_IMChatGetIdentifiersAndServicesTestHookWithChatRegistry:(id)a0 chat:(id)a1 identifiers:(id *)a2 services:(id *)a3 personCentricEnabled:(BOOL)a4; - (void)__handleChatReconstructions:(id)a0; - (void)__handleMergedChatReconstructions:(id)a0; - (void)_account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 messagesUpdated:(id)a4; - (void)_account:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 messagesUpdated:(id)a4 suppressNotification:(BOOL)a5; - (void)_addChat:(id)a0 participantSet:(id)a1; - (void)_batchFetchRemainingContactsOnLaunch; - (id)_bestChatForHandleIDs:(id)a0; - (id)_cachedChatForChatDictionary:(id)a0 participants:(id)a1 participantHash:(id)a2; - (id)_cachedChatWithDisplayName:(id)a0; - (id)_cachedChatWithGroupID:(id)a0; - (id)_cachedChatWithHandle:(id)a0; - (id)_cachedChatWithHandles:(id)a0 allowAlternativeService:(BOOL)a1 groupID:(id)a2 displayName:(id)a3 joinedChatsOnly:(BOOL)a4; - (id)_cachedChatWithIdentifier:(id)a0; - (id)_cachedChatWithIdentifier:(id)a0 style:(unsigned char)a1; - (id)_cachedChatWithPersonID:(id)a0; - (id)_cachedChatsWithDisplayName:(id)a0; - (id)_cachedChatsWithMessage:(id)a0; - (id)_cachedChatsWithMessageGUID:(id)a0; - (id)_cachedGroupChatForGroupChatDictionary:(id)a0 participants:(id)a1 participantHash:(id)a2; - (id)_cachedOneToOneChatForChatDictionary:(id)a0 participants:(id)a1 participantHash:(id)a2; - (void)_chat:(id)a0 inviteParticipants:(id)a1 reason:(id)a2 toiMessageChat:(BOOL)a3; - (void)_chat:(id)a0 joinWithProperties:(id)a1; - (void)_chat:(id)a0 removeParticipants:(id)a1 reason:(id)a2 fromiMessageChat:(BOOL)a3; - (void)_chat:(id)a0 resendEditedMessageItem:(id)a1 partIndex:(long long)a2 withBackwardCompatabilityText:(id)a3; - (void)_chat:(id)a0 retryGroupPhotoUpload:(id)a1; - (void)_chat:(id)a0 sendEditedMessageItem:(id)a1 previousMessageItem:(id)a2 partIndex:(long long)a3 editType:(unsigned long long)a4 backwardCompatabilityText:(id)a5; - (void)_chat:(id)a0 sendGroupPhotoUpdate:(id)a1; - (void)_chat:(id)a0 sendMessage:(id)a1; - (void)_chat:(id)a0 sendMessage:(id)a1 withAccount:(id)a2; - (void)_chat:(id)a0 sendNotifyRecipientCommandForMessage:(id)a1; - (void)_chat:(id)a0 sendPlayedReceiptForMessage:(id)a1; - (void)_chat:(id)a0 sendReadReceiptForMessages:(id)a1; - (void)_chat:(id)a0 sendSavedReceiptForMessage:(id)a1; - (void)_chat:(id)a0 sendSyndicationAction:(id)a1; - (void)_chat:(id)a0 sendUpdatedCollaborationMetadata:(id)a1 forMessageGUID:(id)a2; - (void)_chat:(id)a0 setPlayedExpressiveSendForMessage:(id)a1; - (void)_chat:(id)a0 setProperties:(id)a1 ofParticipant:(id)a2; - (void)_chat:(id)a0 updateDisplayName:(id)a1; - (void)_chat:(id)a0 updateIsBlackholed:(BOOL)a1; - (void)_chat:(id)a0 updateIsDeletingIncomingMessages:(BOOL)a1; - (void)_chat:(id)a0 updateIsFiltered:(long long)a1; - (void)_chat:(id)a0 updateIsRecovered:(BOOL)a1; - (void)_chat:(id)a0 updateLastAddressedHandle:(id)a1; - (id)_chatForIdentifiers:(id)a0; - (void)_chatLoadedWithChatIdentifier:(id)a0 chats:(id)a1; - (void)_chat_clearHistory:(id)a0 beforeGUID:(id)a1 afterGUID:(id)a2 queryID:(id)a3; - (void)_chat_closeSession:(id)a0; - (void)_chat_declineInvitation:(id)a0; - (void)_chat_downloadPurgedAttachmentsForChat:(id)a0; - (void)_chat_leave:(id)a0 leavingiMessageChat:(BOOL)a1; - (void)_chat_loadAttachments:(id)a0 queryID:(id)a1 loadImmediately:(BOOL)a2; - (void)_chat_loadFrequentReplies:(id)a0 limit:(unsigned long long)a1 queryID:(id)a2 loadImmediately:(BOOL)a3; - (void)_chat_loadHistory:(id)a0 limit:(unsigned long long)a1 beforeGUID:(id)a2 afterGUID:(id)a3 threadIdentifier:(id)a4 queryID:(id)a5 synchronous:(BOOL)a6 completion:(id /* block */)a7; - (void)_chat_loadPagedHistory:(id)a0 numberOfMessagesBefore:(unsigned long long)a1 numberOfMessagesAfter:(unsigned long long)a2 messageGUID:(id)a3 threadIdentifier:(id)a4 queryID:(id)a5 synchronous:(BOOL)a6 completion:(id /* block */)a7; - (void)_chat_loadUncachedAttachmentsCount:(id)a0 queryID:(id)a1 loadImmediately:(BOOL)a2; - (void)_chat_loadUnreadMessages:(id)a0 limit:(unsigned long long)a1 fallbackGUID:(id)a2 queryID:(id)a3 loadImmediately:(BOOL)a4; - (void)_chat_markAsSpam:(id)a0 queryID:(id)a1 autoReport:(BOOL)a2 isJunkReportedToCarrier:(BOOL)a3; - (void)_chat_markAsSpam:(id)a0 queryID:(id)a1 isJunkReportedToCarrier:(BOOL)a2; - (void)_chat_markAsSpamAutomatically:(id)a0; - (void)_chat_markLastMessageAsUnread:(id)a0; - (void)_chat_recoverFromJunk:(id)a0; - (void)_chat_remove:(id)a0; - (void)_chat_sendReadReceiptForAllMessages:(id)a0; - (void)_chat_storeItem:(id)a0 inChat:(id)a1; - (id)_chatsMatchingStatusSubscription:(id)a0; - (void)_checkIfItemIsCorrupt:(id)a0; - (void)_checkLimitAndSetMessagesToKeepLoadedIfNeeded:(unsigned long long)a0 chat:(id)a1; - (void)_clearExistingTypingIndicatorsWithMessageGUID:(id)a0 excludingChatWithIdentifier:(id)a1; - (void)_completeChatLoadQueryWithChat:(id)a0 queryID:(id)a1; - (id)_copyMergedChatsPairedArrayFromMergedChatsArray:(id)a0; - (void)_daemonCompletedDeferredSetup; - (void)_daemonReallyDied:(id)a0; - (id)_earliestLastMessageDateFromChatDictionaries:(id)a0; - (id)_eventForMessage:(id)a0; - (id)_existingChatForHandleUsingPersonID:(id)a0; - (id)_existingChatFromSiblingsForHandle:(id)a0; - (id)_existingChatWithHandle:(id)a0 fixChatHandle:(BOOL)a1; - (id)_existingChatWithIdentifier:(id)a0 style:(unsigned char)a1 account:(id)a2; - (id)_existingChatWithIdentifier:(id)a0 style:(unsigned char)a1 service:(id)a2; - (void)_fetchInitialBatchOfContactsOnLaunch; - (void)_handleCachingAliasToCNIDMap:(id)a0; - (void)_handleChatReconstructions:(id)a0; - (void)_handleMergedChatReconstructions:(id)a0; - (BOOL)_hasChat:(id)a0 forService:(id)a1; - (id)_inPersonFromIMHandle:(id)a0 isMe:(BOOL)a1; - (id)_inPersonHandleFromIMHandle:(id)a0 contact:(id)a1; - (id)_inPersonNameForContact:(id)a0 imHandle:(id)a1; - (id)_interactionForMessage:(id)a0 inChat:(id)a1; - (id)_lastMessageDateForQueryFromChatDictionary:(id)a0; - (id)_lastMessageItemForChatDictionary:(id)a0; - (void)_loadAllSiblingChatsForHandlesAssociatedWithChats:(id)a0 waitForReply:(BOOL)a1 completionHandler:(id /* block */)a2; - (void)_loadSiblingsForChatIfNeeded:(id)a0; - (void)_markHasHadSuccessfulQueryForChat:(id)a0; - (unsigned long long)_nicknameSharingAudience; - (BOOL)_nicknameSharingEnabled; - (void)_noteChatDealloc:(id)a0; - (void)_noteChatInit:(id)a0; - (id)_ownerHandleStringsFromSubscription:(id)a0; - (id)_performChatCacheLookupWithBlock:(id /* block */)a0 cacheMissQueryKey:(id)a1 queryBlock:(id /* block */)a2; - (id)_performSingleChatCacheLookupWithBlock:(id /* block */)a0 cacheMissQueryKey:(id)a1 queryBlock:(id /* block */)a2; - (id)_possiblyUnregisteredCachedChatForRoom:(id)a0 onAccount:(id)a1; - (id)_possiblyUnregisteredCachedChatWithHandle:(id)a0; - (id)_possiblyUnregisteredCachedChatWithHandles:(id)a0 style:(unsigned char)a1 groupID:(id)a2 displayName:(id)a3 joinedChatsOnly:(BOOL)a4; - (id)_possiblyUnregisteredCachedChatWithIdentifier:(id)a0 style:(unsigned char)a1 account:(id)a2; - (void)_postMultiWayStateChangedNotification:(id)a0; - (void)_previouslyBlackholedChatLoadedWithHandleIDs:(id)a0 chat:(id)a1; - (void)_processMessageForAccount:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 groupID:(id)a4 chatPersonCentricID:(id)a5 message:(id)a6; - (void)_processMessagesForAccount:(id)a0 chat:(id)a1 style:(unsigned char)a2 chatProperties:(id)a3 groupID:(id)a4 chatPersonCentricID:(id)a5 messages:(id)a6 messagesComingFromStorage:(BOOL)a7; - (void)_registerChat:(id)a0 isIncoming:(BOOL)a1 guid:(id)a2; - (void)_registerChatDictionary:(id)a0 forChat:(id)a1 isIncoming:(BOOL)a2 newGUID:(id)a3; - (void)_registerChatDictionary:(id)a0 forChat:(id)a1 isIncoming:(BOOL)a2 newGUID:(id)a3 shouldPostNotification:(BOOL)a4; - (void)_removeFromGroupParticipantToChatsMap:(id)a0; - (void)_resetChatReconstructionGroupMaps; - (void)_resetChatRegistry; - (id)_sendMessageInteractionForMessage:(id)a0 inChat:(id)a1; - (void)_setChatHasCommunicatedOveriMessage:(id)a0; - (void)_setMeCardSharingOnMessage:(id)a0 forChat:(id)a1; - (void)_setReplyToGuidOnMessage:(id)a0 forChat:(id)a1; - (BOOL)_shouldShareMeCardForAlwaysAskAudienceWithChat:(id)a0; - (BOOL)_shouldShareMeCardForContactsOnlyAudienceWithChat:(id)a0; - (BOOL)_shouldSwitchAccountAddingMessagesToChat:(id)a0 messageItems:(id)a1 messagesComingFromStorage:(BOOL)a2 chatProperties:(id)a3; - (id)_sortedParticipantIDHashForParticipants:(id)a0; - (id)_sortedParticipantIDHashForParticipants:(id)a0 usesPersonCentricID:(BOOL)a1; - (void)_trackUsageForMessage:(id)a0; - (void)_unregisterChat:(id)a0; - (void)_unregisterChatWithGUID:(id)a0; - (id)_unsendMessageInteractionForMessage:(id)a0 inChat:(id)a1; - (BOOL)_updateAutoDonationBehavior:(long long)a0 forChat:(id)a1 shouldPostNotification:(BOOL)a2; - (void)_updateBlackholedChatsExist:(BOOL)a0; - (void)_updateChat:(id)a0 groupID:(id)a1 shouldPostNotification:(BOOL)a2; - (void)_updateChat:(id)a0 updateIsFiltered:(long long)a1; - (void)_updateChatAutoDonationBehavior:(id)a0 withInfo:(id)a1 shouldPostNotification:(BOOL)a2; - (void)_updateFilterediMessageChatsExist:(BOOL)a0; - (void)_updateInfo:(id)a0 forGUID:(id)a1 updatingUnreadCount:(BOOL)a2; - (void)_updateInfo:(id)a0 forGUID:(id)a1 updatingUnreadCount:(BOOL)a2 shouldPostNotifications:(BOOL)a3; - (void)_updatePersonCentricIDToChatMapForChat:(id)a0 toNewPersonCentricID:(id)a1; - (void)_updateReplySuggestions:(id)a0 withInfo:(id)a1; - (void)_updateUnreadCountForChat:(id)a0; - (void)_updateUnreadCountForChat:(id)a0 shouldPostNotification:(BOOL)a1; - (void)_validateChatQueryResults:(id)a0 matchCurrentCacheResults:(id)a1; - (void)_verifyChatMergeWithChat:(id)a0 dictionary:(id)a1; - (long long)_winningJoinStateForExistingChat:(id)a0 incomingDictionary:(id)a1; - (id)activeCallForConversationUUID:(id)a0; - (id)chatForFaceTimeRecipientIDs:(id)a0; - (id)chatForIMHandle:(id)a0 lastAddressedHandle:(id)a1 lastAddressedSIMID:(id)a2; - (id)chatForIMHandles:(id)a0; - (id)chatForIMHandles:(id)a0 chatName:(id)a1; - (id)chatForIMHandles:(id)a0 chatName:(id)a1 lastAddressedHandle:(id)a2 lastAddressedSIMID:(id)a3; - (id)chatForIMHandles:(id)a0 displayName:(id)a1 joinedChatsOnly:(BOOL)a2; - (id)chatForIMHandles:(id)a0 displayName:(id)a1 joinedChatsOnly:(BOOL)a2 lastAddressedHandle:(id)a3 lastAddressedSIMID:(id)a4; - (id)chatForIMHandles:(id)a0 lastAddressedHandle:(id)a1 lastAddressedSIMID:(id)a2; - (id)chatForRoom:(id)a0 onAccount:(id)a1; - (id)chatGuidsForChat:(id)a0; - (id)chatWithHandles:(id)a0 displayName:(id)a1 joinedChatsOnly:(BOOL)a2; - (id)chatWithHandles:(id)a0 lastAddressedHandle:(id)a1 lastAddressedSIMID:(id)a2; - (id)exisitingChatForGroupID:(id)a0; - (id)existingChatForIMHandle:(id)a0; - (id)existingChatForIMHandle:(id)a0 allowRetargeting:(BOOL)a1; - (id)existingChatForIMHandles:(id)a0; - (id)existingChatForIMHandles:(id)a0 allowRetargeting:(BOOL)a1; - (id)existingChatForIMHandles:(id)a0 allowRetargeting:(BOOL)a1 groupID:(id)a2; - (id)existingChatForIMHandles:(id)a0 allowRetargeting:(BOOL)a1 groupID:(id)a2 displayName:(id)a3 ignoresDisplayName:(BOOL)a4 joinedChatsOnly:(BOOL)a5; - (id)existingChatForIMHandles:(id)a0 allowRetargeting:(BOOL)a1 groupID:(id)a2 displayName:(id)a3 joinedChatsOnly:(BOOL)a4; - (id)existingChatForPersonID:(id)a0; - (id)existingChatForRoom:(id)a0 onAccount:(id)a1; - (id)existingChatForRoom:(id)a0 onAccount:(id)a1 allowRetargeting:(BOOL)a2; - (id)existingChatWithContacts:(id)a0 bestHandles:(id *)a1; - (id)existingChatWithHandles:(id)a0; - (id)existingChatWithHandles:(id)a0 allowAlternativeService:(BOOL)a1; - (id)existingChatWithHandles:(id)a0 allowAlternativeService:(BOOL)a1 groupID:(id)a2; - (void)frequentRepliesQuery:(id)a0 finishedWithResult:(id)a1 limit:(long long)a2; - (id)loadChatFromDaemonWithChatIdentifier:(id)a0; - (id)messagesURLWithChat:(id)a0; - (id)messagesURLWithMessageGUID:(id)a0; - (void)moveMessagesWithGUIDsToRecentlyDeleted:(id)a0 deleteDate:(id)a1 synchronously:(BOOL)a2 completionHandler:(id /* block */)a3; - (void)setUpInitialCallState; - (void)setUserActivityForChat:(id)a0 message:(id)a1 orHandles:(id)a2; - (id)unblackholeChatWithHandles:(id)a0; - (void)unregisterChatWithGUID:(id)a0; - (void)updateChatDictionaryArray:(id)a0 createdChat:(id)a1 joinstate:(long long)a2 setHasCommunicatedOveriMessage:(BOOL *)a3; - (void)verifyFilteringForAllChats; @end