text: /*
  * This header is generated by classdump-dyld 1.0
  * on Sunday, September 27, 2020 at 11:51:46 AM Mountain Standard Time
  * Operating System: Version 14.0 (Build 18A373)
  * Image Source: /System/Library/PrivateFrameworks/PersonalizationPortraitInternals.framework/PersonalizationPortraitInternals
  * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
  */
  
  
  @protocol OS_dispatch_queue;
  #import <PersonalizationPortraitInternals/PersonalizationPortraitInternals-Structs.h>
  @class PPSQLDatabase, PPDKStorage, PPRecordStorageHelper, PPSourceStorage, NSObject;
  
  @interface PPNamedEntityStorage : NSObject {
  
  	PPSQLDatabase* _db;
  	PPDKStorage* _dkStorage;
  	id _deletionObserver;
  	PPRecordStorageHelper* _storageHelper;
  	PPSourceStorage* _sourceStorage;
  	NSObject*<OS_dispatch_queue> _populateDatabaseQueue;
  
  }
  +(double)_scoreEntityWithInitialScore:(double)arg1 decayRate:(double)arg2 extractionDate:(id)arg3 scoringDate:(id)arg4 ;
  +(id)_loadTrieFromLocalAsset:(id)arg1 ;
  -(BOOL)clearWithError:(id*)arg1 deletedCount:(unsigned long long*)arg2 ;
  -(unsigned)duetWriteBatchSize;
  -(void)fixupDKEventsWithShouldContinueBlock:(/*^block*/id)arg1 ;
  -(id)clusterIdentifiersExistingBeforeDate:(id)arg1 ;
  -(void)processNewDKEventDeletions;
  -(void)_importDKEventsWithShouldContinueBlock:(unsigned)arg1 remoteEventsOnly:(BOOL)arg2 isComplete:(BOOL*)arg3 shouldContinueBlock:(/*^block*/id)arg4 ;
  -(void)_asyncProcessNewDKEventDeletions;
  -(BOOL)donateNamedEntityFeedback:(id)arg1 ;
  -(BOOL)iterNamedEntityRecordsAndIdsWithQuery:(id)arg1 error:(id*)arg2 block:(/*^block*/id)arg3 ;
  -(id)initWithDatabase:(id)arg1 maxRecords:(unsigned)arg2 dkStorage:(id)arg3 loadEmptyDatabaseFromDK:(BOOL)arg4 ;
  -(void)_truncateRecordsByDroppingOldestMakingRoomForCount:(unsigned)arg1 txnWitness:(id)arg2 ;
  -(id)namedEntityFilterLastRunDateWithError:(id*)arg1 ;
  -(BOOL)deleteNamedEntitiesMatchingRowIds:(id)arg1 atLeastOneNamedEntityRemoved:(BOOL*)arg2 deletedCount:(unsigned long long*)arg3 error:(id*)arg4 ;
  -(BOOL)pruneOrphanedNamedEntityFeedbackCountRecordsWithLimit:(unsigned long long)arg1 rowOffset:(unsigned long long)arg2 deletedCount:(unsigned long long*)arg3 isComplete:(BOOL*)arg4 ;
  -(void)importRemotelyGeneratedNamedEntityDKEventsWithLimit:(unsigned)arg1 isComplete:(BOOL*)arg2 shouldContinueBlock:(/*^block*/id)arg3 ;
  -(id)initWithDatabase:(id)arg1 ;
  -(void)dealloc;
  -(BOOL)deleteAllNamedEntitiesFromSourcesWithBundleId:(id)arg1 groupIds:(id)arg2 atLeastOneNamedEntityRemoved:(BOOL*)arg3 deletedCount:(unsigned long long*)arg4 error:(id*)arg5 ;
  -(BOOL)donateNamedEntities:(id)arg1 source:(id)arg2 algorithm:(unsigned long long)arg3 cloudSync:(BOOL)arg4 decayRate:(double)arg5 sentimentScore:(double)arg6 error:(id*)arg7 ;
  -(void)_prepareDonationStatement:(id)arg1 scoredNamedEntity:(id)arg2 algorithm:(unsigned long long)arg3 cloudSync:(BOOL)arg4 decayRate:(double)arg5 sentimentScore:(double)arg6 occurrencesInSource:(unsigned short)arg7 weightMultiplier:(double)arg8 sourceRowId:(long long)arg9 ;
  -(PASDBIterAction_)_populateEvents:(id)arg1 statement:(id)arg2 txnWitness:(id)arg3 ;
  -(BOOL)deleteAllNamedEntitiesFromSourcesWithBundleId:(id)arg1 groupId:(id)arg2 olderThanDate:(id)arg3 atLeastOneNamedEntityRemoved:(BOOL*)arg4 deletedCount:(unsigned long long*)arg5 error:(id*)arg6 ;
  -(void)clearRemoteRecordsMissingFromDuetWithShouldContinueBlock:(/*^block*/id)arg1 ;
  -(void)exportRecordsToDKWithShouldContinueBlock:(/*^block*/id)arg1 ;
  -(void)disableSyncForBundleIds:(id)arg1 ;
  -(void)_importDKEventsWithLimit:(unsigned)arg1 remoteEventsOnly:(BOOL)arg2 isComplete:(BOOL*)arg3 ;
  -(unsigned)duetReadBatchSize;
  -(double)duetWriteBatchInterval;
  -(id)decayedFeedbackCountsForClusterIdentifier:(id)arg1 ;
  -(BOOL)iterNamedEntityRecordsWithQuery:(id)arg1 error:(id*)arg2 block:(/*^block*/id)arg3 ;
  -(id)thirdPartyBundleIdsFromToday;
  -(void)fixupDKEventsMetadataWithShouldContinueBlock:(/*^block*/id)arg1 ;
  -(id)init;
  -(id)lastDonationTimeForSourcesBeforeDate:(id)arg1 ;
  -(BOOL)deleteAllNamedEntityFeedbackCountRecordsOlderThanDate:(id)arg1 ;
  -(id)_createRecordWithStatement:(id)arg1 txnWitness:(id)arg2 ;
  -(unsigned)uniqueClusterIdentifierCount;
  -(BOOL)deleteAllNamedEntitiesFromSourcesWithBundleId:(id)arg1 atLeastOneNamedEntityRemoved:(BOOL*)arg2 deletedCount:(unsigned long long*)arg3 error:(id*)arg4 ;
  -(BOOL)deleteAllNamedEntitiesFromSourcesWithBundleId:(id)arg1 documentIds:(id)arg2 atLeastOneNamedEntityRemoved:(BOOL*)arg3 deletedCount:(unsigned long long*)arg4 error:(id*)arg5 ;
  -(id)_generateExportRowIdsWithBatchSize:(unsigned)arg1 isComplete:(BOOL*)arg2 ;
  -(id)_updatePreexistingEntitiesMatchingEntities:(id)arg1 source:(id)arg2 algorithm:(unsigned long long)arg3 txnWitness:(id)arg4 ;
  -(id)_deletionQueue;
  -(BOOL)_shouldSuppressRepeatedImpressions:(id)arg1 ;
  -(void)_asyncPopulateDatabaseFromDKEventsIfNecessary;
  -(id)sourceStatsWithExcludedAlgorithms:(id)arg1 ;
  -(PASDBIterAction_)_populateUpdates:(id)arg1 statement:(id)arg2 source:(id)arg3 weightMultiplier:(double)arg4 entityToScoredEntityMap:(id)arg5 ;
  -(id)namedEntityFilterLastRecordDate;
  -(BOOL)_donateNamedEntities:(id)arg1 source:(id)arg2 algorithm:(unsigned long long)arg3 cloudSync:(BOOL)arg4 decayRate:(double)arg5 sentimentScore:(double)arg6 txnWitness:(id)arg7 ;
  -(void)_dkEventImportToDatabaseWithEvent:(id)arg1 eventUUIDBlob:(id)arg2 txnWitness:(id)arg3 filter:(id)arg4 ;
  -(BOOL)setNamedEntityFilterLastRecordDate:(id)arg1 error:(id*)arg2 ;
  -(id)tempTableForSourceIdsExcludedAlgorithms:(id)arg1 txnWitness:(id)arg2 ;
  -(BOOL)deleteAllNamedEntitiesOlderThanDate:(id)arg1 atLeastOneNamedEntityRemoved:(BOOL*)arg2 deletedCount:(unsigned long long*)arg3 error:(id*)arg4 ;
  -(BOOL)decayFeedbackCountsWithDecayRate:(double)arg1 shouldContinueBlock:(/*^block*/id)arg2 ;
  -(BOOL)setNamedEntityFilterLastRunDate:(id)arg1 error:(id*)arg2 ;
  @end
  
  