@class NSString; @protocol IMDRemoteDatabaseProtocol; @interface IMDDatabase : NSObject @property (class, readonly) id synchronousDatabase; @property (class, readonly) id database; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; + (id)_databaseServer; + (id)_databaseClient; + (id)_newSyndicationRangeForCMMMessageItem:(id)a0 syndicationIdentifier:(id)a1 shouldHideFromSyndication:(BOOL)a2; + (id)sharedDatabase; + (BOOL)isServerProcess; - (id)chatRecordsWithIdentifier:(id)a0; - (void)fetchChatRecordsFilteredUsingPredicate:(id)a0 sortedUsingLastMessageDateAscending:(BOOL)a1 olderThan:(id)a2 limit:(unsigned long long)a3 completionHandler:(id /* block */)a4; - (void)updateRecoverableMessageSyncState:(long long)a0 forMessageRowID:(long long)a1 onPartIndex:(long long)a2; - (void)permanentlyDeleteRecoverableMessagesInChatsWithGUIDs:(id)a0 completionHandler:(id /* block */)a1; - (void)moveMessageRecordsToRecoveryForChatRecordsWithGUIDs:(id)a0 deleteDate:(id)a1; - (id)_chatGUIDsForChatsWithJunkMessagesOlderThanDate:(id)a0 operation:(struct IMDSqlOperation { void *x0; void *x1; struct __CFString *x2; void *x3; struct IMDSqlStatement { void *x0; int x1; struct __CFString *x2; struct sqlite3 *x3; int x4; int x5; int x6; struct IMPerfMeasurement_t { struct IMFileLocation_t { char *x0; char *x1; char *x2; char *x3; int x4; } x0; unsigned long long x1; unsigned long long x2; struct __CFString *x3; double x4; double x5; double x6; } x7; } x4; struct __CFError *x5; } *)a1; - (void)fetchChatRecordsWithPinningIdentifier:(id)a0 completionHandler:(id /* block */)a1; - (id)_restoredAttributedBodyForMessageGUID:(id)a0 withRecoveredAttributedParts:(id)a1; - (void)clearRecoverableMessageTombStones; - (id)_loadAttributedBodyTextForMessageWithGUID:(id)a0; - (void)fetchMessageRecordWithGUID:(id)a0 excludeRecoverableMessages:(BOOL)a1 completionHandler:(id /* block */)a2; - (void)updateMessagesSyncedSyndicationRangesForGUIDs:(id)a0 toStatus:(long long)a1; - (void)_fetchMessageRecordsForChatRecordWithGUID:(id)a0 filteredUsingPredicate:(id)a1 sortedUsingDescriptors:(id)a2 limit:(unsigned long long)a3 completionHandler:(id /* block */)a4; - (void)resolveInconsistentGUIDForChatRecordWithGUID:(id)a0 newGUID:(id)a1 completionHandler:(id /* block */)a2; - (void)fetchMessageRecordsForChatRecordWithGUID:(id)a0 filteredUsingPredicate:(id)a1 sortedUsingDescriptors:(id)a2 limit:(unsigned long long)a3 completionHandler:(id /* block */)a4; - (id)_chatGUIDsForChatsWithRecoverableMessagesOlderThanDate:(id)a0 operation:(struct IMDSqlOperation { void *x0; void *x1; struct __CFString *x2; void *x3; struct IMDSqlStatement { void *x0; int x1; struct __CFString *x2; struct sqlite3 *x3; int x4; int x5; int x6; struct IMPerfMeasurement_t { struct IMFileLocation_t { char *x0; char *x1; char *x2; char *x3; int x4; } x0; unsigned long long x1; unsigned long long x2; struct __CFString *x3; double x4; double x5; double x6; } x7; } x4; struct __CFError *x5; } *)a1; - (id)chatRecordsFilteredByPredicate:(id)a0; - (void)updateChatsSyncStatusTo:(long long)a0 forGUIDs:(id)a1; - (void)fetchInteger64ForKey:(id)a0 completionHandler:(id /* block */)a1; - (void)updateMessageSyndicationRanges:(id)a0 shouldHideFromSyndication:(BOOL)a1; - (void)_permanentlyDeleteJunkMessagesBeforeDate:(id)a0; - (void)fetchChatRecordsFilteredUsingPredicate:(id)a0 sortedUsingDescriptors:(id)a1 limit:(unsigned long long)a2 completionHandler:(id /* block */)a3; - (void)fetchGroupPhotoPathsForChatsWithGroupIDs:(id)a0 completionHandler:(id /* block */)a1; - (id)_copyAttachmentRecordsFromCoreSDBResults:(id)a0; - (void)_fetchChatRecordsWithHandles:(id)a0 allowSubsetMatching:(BOOL)a1 serviceName:(id)a2 displayName:(id)a3 groupID:(id)a4 style:(unsigned char)a5 completionHandler:(id /* block */)a6; - (id)_updateAttachmentsSyncStateQueryFor:(long long)a0; - (BOOL)_deleteChatIfEmptyWithGUID:(id)a0 lastMessageDate:(id)a1 operation:(struct IMDSqlOperation { void *x0; void *x1; struct __CFString *x2; void *x3; struct IMDSqlStatement { void *x0; int x1; struct __CFString *x2; struct sqlite3 *x3; int x4; int x5; int x6; struct IMPerfMeasurement_t { struct IMFileLocation_t { char *x0; char *x1; char *x2; char *x3; int x4; } x0; unsigned long long x1; unsigned long long x2; struct __CFString *x3; double x4; double x5; double x6; } x7; } x4; struct __CFError *x5; } *)a2; - (void)postSharePlayNotificationForChatGUID:(id)a0 faceTimeConversationUUID:(id)a1 handleIdentifier:(id)a2 localizedApplicationName:(id)a3; - (id)_updateRecoverableMessageSyncStateForMessageGUIDsQueryFor:(long long)a0; - (id)recoverableMessagesMetadataPendingCloudKitDeleteWithLimit:(unsigned long long)a0; - (void)_removeFromRecoverableMessagePartForMessageGUID:(id)a0 operation:(struct IMDSqlOperation { void *x0; void *x1; struct __CFString *x2; void *x3; struct IMDSqlStatement { void *x0; int x1; struct __CFString *x2; struct sqlite3 *x3; int x4; int x5; int x6; struct IMPerfMeasurement_t { struct IMFileLocation_t { char *x0; char *x1; char *x2; char *x3; int x4; } x0; unsigned long long x1; unsigned long long x2; struct __CFString *x3; double x4; double x5; double x6; } x7; } x4; struct __CFError *x5; })a1; - (void)coreSpotlightDeleteAttachmentGUIDs:(id)a0; - (void)moveMessageRecordsToRecoveryForMessageGUIDs:(id)a0 deleteDate:(id)a1; - (void)updateAttachmentsSyncStatusTo:(long long)a0 forGUIDs:(id)a1; - (void)_updateMessageItemSyndicationRanges:(id)a0 messagePartDescriptor:(id)a1 shouldHideFromSyndication:(BOOL)a2; - (id)_updateChatsSyncStateQueryFor:(long long)a0; - (void)_updateMessagesSyncedSyndicationRangesToSyncedForGUIDs:(id)a0; - (long long)_countMessagesExcludingGroupPhotosInChatWithGUID:(id)a0 isRecoverable:(BOOL)a1 operation:(struct IMDSqlOperation { void *x0; void *x1; struct __CFString *x2; void *x3; struct IMDSqlStatement { void *x0; int x1; struct __CFString *x2; struct sqlite3 *x3; int x4; int x5; int x6; struct IMPerfMeasurement_t { struct IMFileLocation_t { char *x0; char *x1; char *x2; char *x3; int x4; } x0; unsigned long long x1; unsigned long long x2; struct __CFString *x3; double x4; double x5; double x6; } x7; } x4; struct __CFError *x5; } *)a2; - (id)_copyMessageRecordsFromCoreSDBResults:(id)a0; - (id)_copyChatRecordsFromCoreSDBResults:(id)a0; - (void)updateRecoverableMessageSyncState:(long long)a0 forMessageGUIDs:(id)a1; - (void)deleteJunkMessagesOlderThanDays:(long long)a0; - (id)_updateMessageSyncedSyndicationRangesQueryFor:(long long)a0; - (BOOL)_updateSyndicatedMessageItem:(id)a0 newMessageItem:(id)a1 newSyndicationRange:(id)a2; - (void)fetchDataForKey:(id)a0 completionHandler:(id /* block */)a1; - (void)fetchMessageRecordsFilteredUsingPredicate:(id)a0 sortedUsingDescriptors:(id)a1 limit:(unsigned long long)a2 completionHandler:(id /* block */)a3; - (void)_deleteTransfersInMessagePartsForChatGUID:(id)a0; - (void)updateAttachmentSyndicationRanges:(id)a0 shouldHideFromSyndication:(BOOL)a1; - (id)_updateMessageSyncStateQueryFor:(long long)a0; - (void)storeData:(id)a0 forKey:(id)a1; - (id)recoverableMessagesMetadataPendingCloudKitSaveWithLimit:(unsigned long long)a0; - (void)recoverMessageRecordsForChatRecordsWithGUIDs:(id)a0; - (void)_recoverMessagePartsForChatRecordsWithGUIDs:(id)a0 operation:(struct IMDSqlOperation { void *x0; void *x1; struct __CFString *x2; void *x3; struct IMDSqlStatement { void *x0; int x1; struct __CFString *x2; struct sqlite3 *x3; int x4; int x5; int x6; struct IMPerfMeasurement_t { struct IMFileLocation_t { char *x0; char *x1; char *x2; char *x3; int x4; } x0; unsigned long long x1; unsigned long long x2; struct __CFString *x3; double x4; double x5; double x6; } x7; } x4; struct __CFError *x5; })a1; - (void)storeRecoverableMessagePartWithBody:(id)a0 forMessageWithGUID:(id)a1 deleteDate:(id)a2; - (id)chatRecordsWithHandles:(id)a0 serviceName:(id)a1 displayName:(id)a2 groupID:(id)a3 style:(unsigned char)a4; - (id)_mostRecentRecoverableMessageDateForChatWithGUID:(id)a0 operation:(struct IMDSqlOperation { void *x0; void *x1; struct __CFString *x2; void *x3; struct IMDSqlStatement { void *x0; int x1; struct __CFString *x2; struct sqlite3 *x3; int x4; int x5; int x6; struct IMPerfMeasurement_t { struct IMFileLocation_t { char *x0; char *x1; char *x2; char *x3; int x4; } x0; unsigned long long x1; unsigned long long x2; struct __CFString *x3; double x4; double x5; double x6; } x7; } x4; struct __CFError *x5; } *)a1; - (void)fetchChatRecordsWithAtLeastHandles:(id)a0 serviceName:(id)a1 style:(unsigned char)a2 completionHandler:(id /* block */)a3; - (void)deleteRecoverableMessagesOlderThanDays:(long long)a0; - (void)_updateMessageRecordForGUID:(id)a0 withAttributedBody:(id)a1 operation:(struct IMDSqlOperation { void *x0; void *x1; struct __CFString *x2; void *x3; struct IMDSqlStatement { void *x0; int x1; struct __CFString *x2; struct sqlite3 *x3; int x4; int x5; int x6; struct IMPerfMeasurement_t { struct IMFileLocation_t { char *x0; char *x1; char *x2; char *x3; int x4; } x0; unsigned long long x1; unsigned long long x2; struct __CFString *x3; double x4; double x5; double x6; } x7; } x4; struct __CFError *x5; })a2; - (id)_permanentlyDeleteRecoverableMessagesInChatsWithGUIDs:(id)a0 beforeDate:(id)a1; - (void)fetchLastMessageRecordForChatRecordWithRowID:(long long)a0 completionHandler:(id /* block */)a1; - (void)sendLegacyXPCCommandWithObject:(id)a0 reply:(id /* block */)a1; - (id)_loadRecoverableMessagePartsMetadataForChatGUID:(id)a0; - (void)fetchChatRecordsFilteredUsingPredicate:(id)a0 sortedUsingLastMessageDateAscending:(BOOL)a1 limit:(unsigned long long)a2 completionHandler:(id /* block */)a3; - (id)_mostRecentJunkMessageDateForChatWithGUID:(id)a0 operation:(struct IMDSqlOperation { void *x0; void *x1; struct __CFString *x2; void *x3; struct IMDSqlStatement { void *x0; int x1; struct __CFString *x2; struct sqlite3 *x3; int x4; int x5; int x6; struct IMPerfMeasurement_t { struct IMFileLocation_t { char *x0; char *x1; char *x2; char *x3; int x4; } x0; unsigned long long x1; unsigned long long x2; struct __CFString *x3; double x4; double x5; double x6; } x7; } x4; struct __CFError *x5; } *)a1; - (void)deleteAttachmentsDirectWithPredicate:(id)a0; - (id)loadRecoverableMessagesMetadataGroupedByChatGUID; - (void)updateMessagesSyncStatusTo:(long long)a0 forGUIDs:(id)a1; - (void)fetchAttachmentRecordsFilteredUsingPredicate:(id)a0 limit:(unsigned long long)a1 completionHandler:(id /* block */)a2; @end