@class PPTopicBlocklist, NSString, NSError, PPTopicStorage, _PASLock, PPTrialWrapper, NSObject, NSCache; @protocol OS_dispatch_queue; @interface PPLocalTopicStore : PPTopicStore { _PASLock *_lock; NSCache *_modelCache; PPTrialWrapper *_trialWrapper; PPTopicBlocklist *_blocklist; NSString *_cachePath; NSObject *_cacheAsyncUpdateQueue; NSObject *_cacheUpdateQueue; struct atomic_flag { _Atomic BOOL _Value; } _cacheUpdateEnqueued; NSError *_cacheUpdateError; } @property (readonly, nonatomic) PPTopicStorage *storage; + (id)defaultStore; + (id)recordsForTopics:(id)a0 source:(id)a1 algorithm:(unsigned long long)a2; + (void)sortAndTruncate:(id)a0 queryLimit:(unsigned long long)a1; + (id)calibrateScoredTopic:(id)a0 calibrationTrie:(id)a1; - (id)topicCacheSandboxExtensionToken:(id *)a0; - (void)registerFeedback:(id)a0 completion:(id /* block */)a1; - (id)init; - (BOOL)deleteAllTopicsFromSourcesWithBundleId:(id)a0 algorithm:(unsigned long long)a1 deletedCount:(unsigned long long *)a2 error:(id *)a3; - (id)rankedTopicsWithQuery:(id)a0 error:(id *)a1 clientProcessName:(id)a2; - (void)logDonationErrorForReason:(long long)a0 errorCode:(unsigned long long)a1 source:(id)a2; - (BOOL)deleteAllTopicFeedbackCountsOlderThanDate:(id)a0; - (BOOL)deleteAllTopicsOlderThanDate:(id)a0 deletedCount:(unsigned long long *)a1 error:(id *)a2; - (double)finalScoreFromRecordsUsingHybrid:(id)a0 streamingScorer:(id)a1 mlModel:(id)a2; - (BOOL)iterScoresForTopicMapping:(id)a0 query:(id)a1 error:(id *)a2 block:(id /* block */)a3; - (id)topicRecordsWithQuery:(id)a0 error:(id *)a1; - (BOOL)deleteAllTopicsFromSourcesWithBundleId:(id)a0 documentIds:(id)a1 algorithm:(unsigned long long)a2 deletedCount:(unsigned long long *)a3 error:(id *)a4; - (BOOL)computeAndCacheTopicScores:(id *)a0; - (BOOL)deleteAllTopicsFromSourcesWithBundleId:(id)a0 groupIds:(id)a1 algorithm:(unsigned long long)a2 deletedCount:(unsigned long long *)a3 error:(id *)a4; - (id)scoreTopics:(id)a0 scoringDate:(id)a1 decayRate:(double)a2 strictFiltering:(BOOL)a3 sourceStats:(id)a4 decayedFeedbackCounts:(id)a5 streamingScorer:(id *)a6 mlModel:(id)a7; - (BOOL)deleteAllTopicsFromSourcesWithBundleId:(id)a0 documentIds:(id)a1 deletedCount:(unsigned long long *)a2 error:(id *)a3; - (id)topicExtractionsFromText:(id)a0 error:(id *)a1; - (id)cachePath:(id *)a0; - (id)rankedTopicsWithQuery:(id)a0 error:(id *)a1; - (id)topicExtractionsFromText:(id)a0 clientProcessName:(id)a1 error:(id *)a2; - (BOOL)deleteAllTopicsFromSourcesWithBundleId:(id)a0 groupId:(id)a1 olderThan:(id)a2 deletedCount:(unsigned long long *)a3 error:(id *)a4; - (id)cachedTopicScores; - (BOOL)pruneOrphanedTopicFeedbackCountsWithLimit:(unsigned long long)a0 rowOffset:(unsigned long long)a1 deletedCount:(unsigned long long *)a2 isComplete:(BOOL *)a3; - (BOOL)donateTopics:(id)a0 source:(id)a1 algorithm:(unsigned long long)a2 cloudSync:(BOOL)a3 sentimentScore:(double)a4 exactMatchesInSourceText:(id)a5 error:(id *)a6; - (BOOL)clearTopicScoresCache:(id *)a0; - (id)scoresForTopicMapping:(id)a0 query:(id)a1 error:(id *)a2; - (BOOL)deleteAllTopicsFromSourcesWithBundleId:(id)a0 deletedCount:(unsigned long long *)a1 error:(id *)a2; - (BOOL)deleteAllTopicsFromSourcesWithBundleId:(id)a0 groupId:(id)a1 algorithm:(unsigned long long)a2 olderThan:(id)a3 deletedCount:(unsigned long long *)a4 error:(id *)a5; - (id)initWithStorage:(id)a0 trialWrapper:(id)a1; - (BOOL)deleteAllTopicsWithTopicId:(id)a0 deletedCount:(unsigned long long *)a1 error:(id *)a2; - (id)scoresForTopicMapping:(id)a0 query:(id)a1 error:(id *)a2 clientProcessName:(id)a3; - (void).cxx_destruct; - (id)unmapMappedTopicIdentifier:(id)a0 mappingIdentifier:(id)a1 error:(id *)a2; - (BOOL)computeAndCacheTopicScoresWithShouldContinueBlock:(id /* block */)a0 error:(id *)a1; - (BOOL)deleteAllTopicsFromSourcesWithBundleId:(id)a0 groupIds:(id)a1 deletedCount:(unsigned long long *)a2 error:(id *)a3; - (BOOL)deleteAllTopicsWithTopicId:(id)a0 algorithm:(unsigned long long)a1 deletedCount:(unsigned long long *)a2 error:(id *)a3; - (BOOL)flushDonationsWithError:(id *)a0; - (void)processFeedback:(id)a0; - (void)registerUniversalSearchSpotlightFeedback:(id)a0 completion:(id /* block */)a1; - (BOOL)cloudSyncWithError:(id *)a0; - (BOOL)iterTopicRecordsWithQuery:(id)a0 error:(id *)a1 block:(id /* block */)a2; - (void)disableSyncForBundleIds:(id)a0; - (BOOL)iterScoredTopicsWithQuery:(id)a0 error:(id *)a1 clientProcessName:(id)a2 block:(id /* block */)a3; - (BOOL)clearWithError:(id *)a0 deletedCount:(unsigned long long *)a1; @end