@class NSString, NSURL, SPCoreSpotlightTask, NSSet, NSArray, SPCoreSpotlightInteractionHandler, NSDictionary, NSMutableSet, NSObject, CSFileProviderDomainMonitor; @protocol CSIndexExtensionDelegate, SPCoreSpotlightIndexerDelegate, OS_dispatch_source, OS_dispatch_queue, NSObject; @interface SPCoreSpotlightIndexer : NSObject { int cancelFlags[5]; double _lastUpdateTime; NSMutableSet *_bundlesWithIndexedCoreSpotlightItems; NSSet *_bundlesWithRemoteSearchSupport; NSObject *_appScopingQueue; NSString *_serviceName; NSArray *_reindexIndexers; } @property (retain, nonatomic) SPCoreSpotlightInteractionHandler *interactionHandler; @property (retain) NSDictionary *concreteIndexers; @property (retain, nonatomic) NSObject *prefsChangeSource; @property (retain, nonatomic) id dataMigrationStartObserver; @property (retain, nonatomic) id dataMigrationFinishObserver; @property (retain, nonatomic) NSSet *dataMigrationBundleIDs; @property (retain, nonatomic) NSSet *prefsDisabledBundleIDs; @property (retain, nonatomic) NSObject *reindexAllItemsSource; @property (retain, nonatomic) NSObject *reindexAllItemsWithIdentifiersSource; @property (retain) SPCoreSpotlightTask *reindexAllItemsTask; @property (readonly, nonatomic) NSDictionary *fileProviderAppToExtensionBundleMap; @property (readonly, nonatomic) NSDictionary *fileProviderExtensionToAppBundleMap; @property (retain, nonatomic) NSMutableSet *knownPersonas; @property (nonatomic) BOOL updatePersonas; @property (readonly) NSURL *personaListURL; @property (weak) CSFileProviderDomainMonitor *fileProviderMonitor; @property (retain, nonatomic) NSObject *personaQueue; @property (retain, nonatomic) NSObject *indexQueue; @property (retain, nonatomic) NSObject *firstUnlockQueue; @property (retain, nonatomic) NSObject *reindexAllQueue; @property (nonatomic) unsigned long long dataMigrationStage; @property (readonly, nonatomic) long long transactionCount; @property (weak) id extensionDelegate; @property (weak) id indexerDelegate; @property (readonly) unsigned long long hash; @property (readonly) Class superclass; @property (readonly, copy) NSString *description; @property (readonly, copy) NSString *debugDescription; + (void)shrink:(unsigned long long)a0; + (id)sharedInstance; + (BOOL)writeDiagnostic:(id)a0 bundleID:(id)a1 identifier:(id)a2; + (id)_mergedTokenRewrites:(id)a0; + (void)sync; + (void)setIndexerDelegate:(id)a0; + (void)shutdown; + (void)preheat; + (void)initialize; + (id)allProtectionClasses; + (id)_filterReindexAllExtensions:(id)a0; + (id)fileProviderProtectionClasses; + (void)deviceStateWillChange:(BOOL)a0; + (void)cooldown; + (void)setMemoryPressureStatus:(unsigned long long)a0; + (void)deactivate; - (void)indexSearchableItems:(id)a0 deleteSearchableItemsWithIdentifiers:(id)a1 clientState:(id)a2 expectedClientState:(id)a3 clientStateName:(id)a4 protectionClass:(id)a5 forBundleID:(id)a6 options:(long long)a7 completionHandler:(id /* block */)a8; - (void)deleteAllUserActivities:(id)a0 completionHandler:(id /* block */)a1; - (void)shrink:(unsigned long long)a0; - (double)lastUpdateTime; - (void)deleteSearchableItemsSinceDate:(id)a0 protectionClass:(id)a1 forBundleID:(id)a2 options:(long long)a3 completionHandler:(id /* block */)a4; - (id)startQueryWithQueryString:(id)a0 queryContext:(id)a1 eventHandler:(id /* block */)a2 resultsHandler:(id /* block */)a3 completionHandler:(id /* block */)a4; - (void)provideFileURLForBundle:(id)a0 identifier:(id)a1 type:(id)a2 completionHandler:(id /* block */)a3; - (void)willModifySearchableItemsWithIdentifiers:(id)a0 protectionClass:(id)a1 forBundleID:(id)a2 options:(long long)a3 completionHandler:(id /* block */)a4; - (void)cancelQuery:(id)a0; - (void)fetchLastClientStateWithProtectionClass:(id)a0 forBundleID:(id)a1 clientStateName:(id)a2 options:(long long)a3 completionHandler:(id /* block */)a4; - (void)_issueDiagnose:(int)a0 completionHandler:(id /* block */)a1; - (void)checkIfExtensionsNeedToBeLoaded; - (void)deleteAllSearchableItemsWithProtectionClass:(id)a0 forBundleID:(id)a1 options:(long long)a2 completionHandler:(id /* block */)a3; - (void)indexSearchableItems:(id)a0 deleteSearchableItemsWithIdentifiers:(id)a1 clientState:(id)a2 clientStateName:(id)a3 protectionClass:(id)a4 forBundleID:(id)a5 options:(long long)a6 completionHandler:(id /* block */)a7; - (void)_enumerateIndexersWithProtectionClasses:(id)a0 block:(id /* block */)a1; - (void)revokeExpiredItems:(id)a0 protected:(BOOL)a1; - (void)_reindexAllItemsForBundleIDs:(id)a0 reason:(id)a1 completionHandler:(id /* block */)a2; - (void)shutdown; - (void)deleteSearchableItemsWithFileProviderDomains:(id)a0 completionHandler:(id /* block */)a1; - (void)indexSearchableItems:(id)a0 deleteSearchableItemsWithIdentifiers:(id)a1 clientState:(id)a2 protectionClass:(id)a3 forBundleID:(id)a4 options:(long long)a5 completionHandler:(id /* block */)a6; - (void)deleteSearchableItemsWithDomainIdentifiers:(id)a0 protectionClass:(id)a1 forBundleID:(id)a2 options:(long long)a3 completionHandler:(id /* block */)a4; - (id)_startQueryWithQueryString:(id)a0 queryContext:(id)a1 eventHandler:(id /* block */)a2 resultsHandler:(id /* block */)a3 completionHandler:(id /* block */)a4; - (void)mergeWithProtectionClasses:(id)a0 power:(BOOL)a1 inferPriorityIndex:(BOOL)a2 completionHandler:(id /* block */)a3; - (void)deleteActionsWithIdentifiers:(id)a0 completionHandler:(id /* block */)a1; - (id)init; - (void)provideDataForBundle:(id)a0 identifier:(id)a1 type:(id)a2 completionHandler:(id /* block */)a3; - (void)_reindexAllItemsOnPrefsChanges; - (id)priorityIndexer; - (void)getDBLogsWithCompletionHandler:(id /* block */)a0; - (void)_reindexAllIdentifiersWithExtension:(id)a0 completionBlock:(id /* block */)a1; - (void)dealloc; - (void)writeFileProviderBundleMap:(id)a0; - (id)startQuery:(id)a0 withContext:(id)a1 handler:(id /* block */)a2; - (void)preheat; - (id)taskForQueryWithQueryString:(id)a0 queryContext:(id)a1 eventHandler:(id /* block */)a2 resultsHandler:(id /* block */)a3 completionHandler:(id /* block */)a4; - (void)locked; - (id)searchServiceName; - (void)locking; - (id)taskForTopHitQueryWithQueryString:(id)a0 queryContext:(id)a1 eventHandler:(id /* block */)a2 resultsHandler:(id /* block */)a3 completionHandler:(id /* block */)a4; - (void)start; - (void)issueConsistencyCheck:(id)a0; - (void)flush; - (void)setServiceName:(id)a0; - (void)mergeWithProtectionClasses:(id)a0 completionHandler:(id /* block */)a1; - (id)delegateServiceName; - (id)startQuery:(id)a0 withContext:(id)a1 eventHandler:(id /* block */)a2 handler:(id /* block */)a3; - (void)upgradeCheck; - (void)issueDumpReverse:(unsigned long long)a0 completionHandler:(id /* block */)a1; - (void)fetchAttributesForProtectionClass:(id)a0 attributes:(id)a1 bundleID:(id)a2 identifiers:(id)a3 completion:(id /* block */)a4; - (void)powerStateChanged; - (void)commitUpdates; - (void)fetchAttributes:(id)a0 protectionClass:(id)a1 bundleID:(id)a2 identifiers:(id)a3 includeParents:(BOOL)a4 qos:(unsigned int)a5 completionHandler:(id /* block */)a6; - (void)userPerformedAction:(id)a0 withItem:(id)a1 protectionClass:(id)a2 forBundleID:(id)a3 personaID:(id)a4; - (void)runMigration; - (void)issueMessagesFixup:(id /* block */)a0; - (void)mergeWithProtectionClasses:(id)a0 power:(BOOL)a1 completionHandler:(id /* block */)a2; - (void)performIndexerTask:(id)a0 completionHandler:(id /* block */)a1; - (void)issueLoadTrial:(id)a0; - (void)_closeIndexWithIndexers:(id)a0; - (void)addCompletedBundleIDs:(id)a0 forIndexerTask:(id)a1; - (id)defaultIndexer; - (void)queryPreheat:(id)a0; - (void)_migrateIndexExtensionsWithEnumerator:(id)a0 forced:(BOOL)a1 migratedBundleIds:(id)a2 completionHandler:(id /* block */)a3; - (void)issueRepair:(id)a0; - (void)issueSplit:(id)a0; - (void)fileProviderInfoSetup; - (void)issueDefrag:(id)a0 group:(id)a1; - (void)addInteraction:(id)a0 bundleID:(id)a1 protectionClass:(id)a2; - (void)deleteSearchableItemsWithPersonaIds:(id)a0 completionHandler:(id /* block */)a1; - (void)unlock; - (id)fileProviderDomainFilterQueries; - (int)_openIndex:(BOOL)a0 forInit:(BOOL)a1; - (void)transferDeleteJournalsForProtectionClass:(id)a0 toDirectory:(int)a1 completionHandler:(id /* block */)a2; - (void)resume; - (void)_registerForPrefsChanges; - (void)issueDuplicateOidCheck:(id)a0; - (void)_enumerateIndexersWithProtectionClasses:(id)a0 inferPriorityIndex:(BOOL)a1 block:(id /* block */)a2; - (void)handleRankingCommand:(id)a0 completion:(id /* block */)a1; - (void)_reindexAllItemsWithExtensionsAndIdentifiersAndCompletionBlock:(id /* block */)a0; - (void)_enumerateIndexersWithBlock:(id /* block */)a0; - (id)_taskForQueryWithQueryString:(id)a0 queryContext:(id)a1 eventHandler:(id /* block */)a2 resultsHandler:(id /* block */)a3 completionHandler:(id /* block */)a4; - (void)startQueryTask:(id)a0; - (void)issueSharedDocumentAttributeFixup; - (void)performIndexerTask:(id)a0 withIndexExtensionsAndCompletionHandler:(id /* block */)a1; - (void).cxx_destruct; - (void)changeStateOfSearchableItemsWithUIDs:(id)a0 toState:(long long)a1 protectionClass:(id)a2 forBundleID:(id)a3 forUTIType:(id)a4 options:(long long)a5; - (void)closeIndex; - (void)personaListDidUpdate; - (void)issuePathFixup:(id)a0; - (void)indexFromBundle:(id)a0 protectionClass:(id)a1 personaID:(id)a2 options:(long long)a3 items:(id)a4 itemsText:(id)a5 itemsHTML:(id)a6 clientState:(id)a7 expectedClientState:(id)a8 clientStateName:(id)a9 deletes:(id)a10 completionHandler:(id /* block */)a11; - (int)openIndex:(BOOL)a0; - (void)issueDumpForward:(unsigned long long)a0 completionHandler:(id /* block */)a1; - (id)queryForWord:(id)a0 matchingAttributes:(id)a1 prefixMatch:(BOOL)a2; - (void)rewriteQueryWithQueryString:(id)a0 context:(id)a1 matchInfo:(id)a2 rewriteHandler:(id /* block */)a3; - (void)deleteAllSearchableItemsWithBundleID:(id)a0 protectionClass:(id)a1 shouldGC:(BOOL)a2 completionHandler:(id /* block */)a3; - (id)indexServiceName; - (id)contactsIndexer; - (void)_fetchAccumulatedStorageSizeForBundleId:(id)a0 completionHandler:(id /* block */)a1; - (void)coolDown; - (void)issueResolveFPItemForURL:(id)a0 completionHandler:(id /* block */)a1; - (void)deleteAllInteractionsWithBundleID:(id)a0 completionHandler:(id /* block */)a1; - (void)issueResolveFPItemForBundle:(id)a0 domain:(id)a1 identifier:(id)a2 completionHandler:(id /* block */)a3; - (void)deleteActionsBeforeTime:(double)a0 completionHandler:(id /* block */)a1; - (id)priorityIndexPath; - (void)_reindexAllItemsWithExtensionsAndCompletionBlock:(id /* block */)a0; - (int)openIndex:(BOOL)a0 forInit:(BOOL)a1; - (void)mergeWithProtectionClasses:(id)a0 power:(BOOL)a1; - (void)topKTerms:(id)a0 completionHandler:(id /* block */)a1; - (void)issueCleanup:(id)a0 flags:(int)a1; - (void)migrateForced:(BOOL)a0; - (void)reindexAllItemsWithIndexers:(id)a0 completionHandler:(id /* block */)a1; - (void)issueDuplicateOidCheckWithGroup:(id)a0 protected:(BOOL)a1; - (void)_issueCommand:(id)a0 searchContext:(id)a1 completionHandler:(id /* block */)a2; - (id)concreteIndexerForProtectionClass:(id)a0 andBundleID:(id)a1; - (void)extensionsChanged:(id)a0; - (void)clientDidCheckin:(id)a0 protectionClass:(id)a1 service:(id)a2 completionHandler:(id /* block */)a3; - (void)cleanupStringsWithProtectionClasses:(id)a0 completionHandler:(id /* block */)a1; - (void)issueResolveFPItem:(id)a0 completionHandler:(id /* block */)a1; - (BOOL)writeData:(id)a0 toFile:(id)a1; - (void)commitUpdatesWithCompletionHandler:(id /* block */)a0; - (void)recordEngagementForBundleID:(id)a0 uniqueIdentifier:(id)a1 protectionClass:(id)a2 userQuery:(id)a3 date:(id)a4; - (id)priorityIndexAvailableTouchFilePath; - (id)systemSettingsIndexer; - (void)_upgradeToPriorityIndex; @end