@class NSMutableDictionary, NSDate, PSIDatabase, PLPhotoLibraryPathManager, NSDictionary, PLSearchIndexSceneTaxonomyProvider, PLThrottleTimer, PLSearchMetadataStore, NSObject, PLZeroKeywordStore, NSString, PLClientServerTransaction, NSHashTable, PLSearchIndexDateFormatter, PLSpotlightDonationManager, PLPhotoLibrary, NSCountedSet; @protocol OS_dispatch_queue, PLSearchIndexManagerDatabaseConnectionDelegate; @interface PLSearchIndexManager : NSObject { PLSearchIndexDateFormatter *_dateFormatter; PLPhotoLibraryPathManager *_pathManager; PLPhotoLibrary *_photoLibrary; PSIDatabase *_db; PLZeroKeywordStore *_zeroKeywordStore; PLSearchMetadataStore *_searchMetadataStore; PLThrottleTimer *_throttleTimer; PLClientServerTransaction *_serverTransaction; double _serverTransactionStartTime; PLSearchIndexSceneTaxonomyProvider *_sceneTaxonomyProvider; NSDictionary *_searchSystemInfo; NSObject *_queue; NSDictionary *_inqUUIDsToProcess; NSMutableDictionary *_inqGraphDataByUUID; NSMutableDictionary *_inqSynonymsByIndexCategoryMask; BOOL _receivedUpdatesWhileIndexing; BOOL _hasScheduledCloseIndex; BOOL _hasValidSearchIndex; BOOL _hasValidSearchSupportingData; BOOL _shouldCheckDatabaseIntegrity; BOOL _shouldLimitIndexingWhileOnBattery; BOOL _isTrackingRebuild; long long _rebuildReason; long long _updateState; double _lastIndexingStartTime; BOOL _startedIndexing; struct os_unfair_lock_s { unsigned int _os_unfair_lock_opaque; } _stateLock; BOOL _searchIndexInvalidated; NSHashTable *_blocksOnQueueAfterDelay; } @property (class) BOOL shouldIndexFilenames; @property (getter=_isIndexing, setter=_setIndexing:) BOOL _indexing; @property (copy, nonatomic, setter=_setInqAfterIndexingDidIterate:) id /* block */ _inqAfterIndexingDidIterate; @property (readonly, copy, nonatomic) NSCountedSet *_pauseReasons; @property (readonly, nonatomic) PLSpotlightDonationManager *spotlightDonationManager; @property (nonatomic) double lastKnownElapsedIndexingTime; @property (retain, nonatomic) NSDate *dateOfLastSearchIndexRebuild; @property (retain, nonatomic) NSString *photoLibraryTypeDescription; @property (retain, nonatomic) NSDate *dateBeganIndexingOnBattery; @property (retain, nonatomic) NSDate *datePausedIndexingOnBattery; @property (readonly) PSIDatabase *database; @property (weak) id databaseConnectionDelegate; @property (readonly, getter=isIndexingPaused) BOOL indexingPaused; + (id)fetchMemoriesWithUUIDs:(id)a0 managedObjectContext:(id)a1 error:(id *)a2; + (id)fetchMomentUUIDsToPopulateAssetSearchIndexWithManagedObjectContext:(id)a0 error:(id *)a1; + (id)fetchAssetsWithUUIDs:(id)a0 managedObjectContext:(id)a1 error:(id *)a2; + (id)localeForSearchIndex; + (int)currentSearchIndexVersion; + (id)fetchHighlightUUIDsToPopulateSearchIndexWithManagedObjectContext:(id)a0 error:(id *)a1; + (id)fetchMemoryUUIDsToPopulateSearchIndexWithManagedObjectContext:(id)a0 error:(id *)a1; + (BOOL)_isUnboundedIndexingAllowed; + (id)fetchAlbumUUIDsToPopulateSearchIndexWithManagedObjectContext:(id)a0 error:(id *)a1; + (id)fetchAlbumsWithUUIDs:(id)a0 managedObjectContext:(id)a1 error:(id *)a2; + (id)fetchMomentsWithUUIDs:(id)a0 managedObjectContext:(id)a1 error:(id *)a2; + (id)fetchHighlightsWithUUIDs:(id)a0 managedObjectContext:(id)a1 error:(id *)a2; + (id)fetchAssetUUIDsToPopulateSearchIndexWithManagedObjectContext:(id)a0 error:(id *)a1; + (BOOL)_isIndexingAllowedByDAS; - (void)applyGraphUpdates:(id)a0 supportingData:(id)a1 completion:(id /* block */)a2; - (void)dropSearchIndexWithCompletion:(id /* block */)a0; - (id)_inqRequestGraphDataForHighlightUUIDs:(id)a0 momentUUIDs:(id)a1 photoLibrary:(id)a2 singleAssetOnly:(BOOL)a3 error:(id *)a4; - (void)_inqEnsureSearchProgressExists; - (void)applyUpdates:(id)a0 completion:(id /* block */)a1; - (id)_assetUUIDsToRemoveFromUUIDsToProcess:(id)a0; - (void)dealloc; - (void)pauseIndexingWithReason:(id)a0; - (id)_featuredPersonLocalIdentifiersFromPhotosGraphData:(id)a0 photosGraphVersion:(long long)a1; - (void)_inqUpdateUUIDsToProcessWithSpotlightProgress; - (id)initWithPathManager:(id)a0; - (void)_beginObservingPhotosPreferences; - (void)_inqEnsurePhotoLibraryExists; - (void)_inqResumeIndexingIfNeeded; - (void)enqueuedUUIDsCountWithCompletionHandler:(id /* block */)a0; - (id)searchIndexManagerSignpostLog; - (void)unpauseIndexingWithReason:(id)a0; - (id)_collectionUUIDsToRemoveFromUUIDsToProcess:(id)a0; - (BOOL)_onQueueAsync:(id /* block */)a0; - (void)invalidate; - (long long)_inqSpotlightRequestedRebuild; - (BOOL)_inqUpdateWordEmbeddingVersion:(id)a0; - (void)_preferencesDidChange; - (BOOL)_inqIsIndexingPaused; - (void)_throttleTimerFire:(id)a0; - (BOOL)_shouldResumeIndexingBasedOnDevicePowerStatusOrDAS; - (BOOL)_removeFileAtPath:(id)a0 description:(id)a1; - (id)_assetUUIDsWithGraphDataInSpotlight; - (void)_inqCloseSearchIndexAndDelete:(BOOL)a0 withCompletion:(id /* block */)a1; - (void)_inqEndTrackingUpdateIfNeeded; - (void)_inqScheduleCloseIndexIfNeeded; - (id)_updatesAfterConvertingPersonsToAssetsInUpdates:(id)a0; - (void)_inqAddUpdatesWithUUIDs:(id)a0 forKey:(id)a1; - (long long)_inqRebuildReasonIfSearchIndexIsValid; - (BOOL)_inqUpdateSearchSystemInfo:(id)a0 forKey:(id)a1 logMessage:(id)a2; - (void)_inqValidateSearchIndexWithCompletionHandler:(id /* block */)a0; - (void)resumeIndexingIfAllowed; - (id)_inqKeywordsByCategoryMaskByAssetUUIDFromAssetSearchKeywords:(id)a0 andAssetUUIDsBySocialGroup:(id)a1; - (void)_inqEnsureSceneTaxonomyProxyExists; - (id)_wordEmbeddingVersion; - (void)_inqEndTrackingRebuildIfNeeded; - (void)_inqTakeClientServerTransactionIfNeeded; - (void)_fetchMemoriesToIndexWithUUIDs:(id)a0 managedObjectContext:(id)a1 result:(id /* block */)a2; - (void)_handlePowerSourceChange; - (void)observeValueForKeyPath:(id)a0 ofObject:(id)a1 change:(id)a2 context:(void *)a3; - (BOOL)_onQueueSync:(id /* block */)a0; - (void).cxx_destruct; - (id)_inqKeywordsByCategoryMaskByAssetUUIDFromAssetUUIDsBySocialGroup:(id)a0; - (BOOL)_onQueueAsyncWithDelay:(double)a0 perform:(id /* block */)a1; - (void)_inqResetSearchIndexWithReason:(long long)a0 dropCompletion:(id /* block */)a1; - (void)indexSingleAssetWithUUID:(id)a0 completion:(id /* block */)a1; - (void)resetSearchIndexWithReason:(long long)a0 dropCompletion:(id /* block */)a1; - (void)_inqStartTrackingRebuildWithReason:(long long)a0; - (BOOL)_setIndexingPaused:(BOOL)a0 synchronously:(BOOL)a1 reason:(id)a2; - (void)_inqCloseIndexIfAbleOrForce:(BOOL)a0 isDelete:(BOOL)a1; - (id)_updatesEnsuringMutableArraysFromUpdates:(id)a0; - (id)_updatesAfterConvertingDetectedFacesToAssetsInUpdates:(id)a0; - (void)_inqEnsureSearchSystemInfoExists; - (void)_inqUpdateFeaturedContentForSearch:(BOOL)a0; - (void)_inqEnsureSearchIndexExists; - (void)_inqStartTrackingUpdateIfAble; - (BOOL)_inqUpdateFeatureFlags; - (void)_stopObservingPowerSourceChanges; - (BOOL)_inqUpdateLocale; - (void)_inqIndexPhotoLibrary; - (BOOL)_inqUpdateVersion; - (void)_stopObservingPhotosPreferences; - (BOOL)_inqUpdateSceneTaxonomySHA:(id)a0; - (void)_beginObservingPowerSourceChanges; - (void)_inqEnsureSpotlightDonationManagerExists; - (void)_inqDropClientServerTransactionIfNeeded; - (void)_inqSetIndexingPaused:(BOOL)a0 reason:(id)a1; - (BOOL)_inqUpdateFeaturedContentAllowed:(BOOL)a0; - (void)_inqTrackTransitionFromUpdateScheduledToUpdatingIfAble; - (id)_inqKeywordsByCategoryMaskByAssetUUIDFromAssetSearchKeywords:(id)a0; - (long long)_inqRebuildReasonIfSearchSupportingDataIsValid; - (void)ensureSearchIndexExistsWithCompletionHandler:(id /* block */)a0; - (unsigned long long)_inqEnqueuedUUIDsCountForceLoad:(BOOL)a0; - (id)_inqPhotoLibrary; - (void)donateSearchEntitiesToSpotlightWithCompletion:(id /* block */)a0; @end