/*
* This header is generated by classdump-dyld 1.0
* on Sunday, September 27, 2020 at 11:40:33 AM Mountain Standard Time
* Operating System: Version 14.0 (Build 18A373)
* Image Source: /System/Library/Frameworks/CoreSpotlight.framework/CoreSpotlight
* classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
*/

#import <CoreSpotlight/CoreSpotlight-Structs.h>
#import <libobjc.A.dylib/MDSearchQueryResultProcessor.h>

@protocol OS_dispatch_queue;
@class NSKnownKeysMappingStrategy, NSObject, NSString, CSSearchQueryContext, NSMapTable, NSArray;

@interface CSSearchQuery : NSObject <MDSearchQueryResultProcessor> {

	unsigned long long _foundItemCount;
	short _requestedAttributeCount;
	short _attrInfo[12];
	BOOL _started;
	BOOL _finished;
	BOOL _cancelled;
	BOOL _gatherEnded;
	os_unfair_lock_s _liveItemLock;
	NSKnownKeysMappingStrategy* _mappingStrategy;
	unsigned long long* _attrKeys;
	BOOL _privateIndex;
	BOOL _userFSIndex;
	BOOL _suspended;
	/*^block*/id _foundItemsHandler;
	/*^block*/id _completionHandler;
	NSObject*<OS_dispatch_queue> _queue;
	NSString* _queryString;
	CSSearchQueryContext* _queryContext;
	NSMapTable* _liveIndexBundleIDToIndexItemIDMap;
	NSMapTable* _liveIndexBundleIDToBundleString;
	NSMapTable* _liveIndexUserFSOIDTOIdentifierMap;
	/*^block*/id _gatherEndedHandler;
	/*^block*/id _changedItemsHandler;
	/*^block*/id _removedItemsHandler;
	/*^block*/id _foundAttributesHandler;
	/*^block*/id _changedAttributesHandler;
	/*^block*/id _countChangedHandler;
	/*^block*/id _resolvedAttributeNamesHandler;
	/*^block*/id _completionsHandler;
	/*^block*/id _completionScoresHandler;
	/*^block*/id _foundItemHandler;
	/*^block*/id _interruptedHandler;
	/*^block*/id _restartedHandler;
	/*^block*/id _restartGatherEndedHandler;
	NSString* _privateBundleID;

}

@property (nonatomic,readonly) NSArray * fetchAttributes; 
@property (nonatomic,retain) NSObject*<OS_dispatch_queue> queue;                          //@synthesize queue=_queue - In the implementation block
@property (nonatomic,copy) NSString * queryString;                                        //@synthesize queryString=_queryString - In the implementation block
@property (nonatomic,retain) CSSearchQueryContext * queryContext;                         //@synthesize queryContext=_queryContext - In the implementation block
@property (nonatomic,retain) NSMapTable * liveIndexBundleIDToIndexItemIDMap;              //@synthesize liveIndexBundleIDToIndexItemIDMap=_liveIndexBundleIDToIndexItemIDMap - In the implementation block
@property (nonatomic,retain) NSMapTable * liveIndexBundleIDToBundleString;                //@synthesize liveIndexBundleIDToBundleString=_liveIndexBundleIDToBundleString - In the implementation block
@property (nonatomic,retain) NSMapTable * liveIndexUserFSOIDTOIdentifierMap;              //@synthesize liveIndexUserFSOIDTOIdentifierMap=_liveIndexUserFSOIDTOIdentifierMap - In the implementation block
@property (copy) id gatherEndedHandler;                                                   //@synthesize gatherEndedHandler=_gatherEndedHandler - In the implementation block
@property (copy) id changedItemsHandler;                                                  //@synthesize changedItemsHandler=_changedItemsHandler - In the implementation block
@property (copy) id removedItemsHandler;                                                  //@synthesize removedItemsHandler=_removedItemsHandler - In the implementation block
@property (copy) id foundAttributesHandler;                                               //@synthesize foundAttributesHandler=_foundAttributesHandler - In the implementation block
@property (copy) id changedAttributesHandler;                                             //@synthesize changedAttributesHandler=_changedAttributesHandler - In the implementation block
@property (copy) id countChangedHandler;                                                  //@synthesize countChangedHandler=_countChangedHandler - In the implementation block
@property (copy) id resolvedAttributeNamesHandler;                                        //@synthesize resolvedAttributeNamesHandler=_resolvedAttributeNamesHandler - In the implementation block
@property (copy) id completionsHandler;                                                   //@synthesize completionsHandler=_completionsHandler - In the implementation block
@property (copy) id completionScoresHandler;                                              //@synthesize completionScoresHandler=_completionScoresHandler - In the implementation block
@property (copy) id foundItemHandler;                                                     //@synthesize foundItemHandler=_foundItemHandler - In the implementation block
@property (copy) id interruptedHandler;                                                   //@synthesize interruptedHandler=_interruptedHandler - In the implementation block
@property (copy) id restartedHandler;                                                     //@synthesize restartedHandler=_restartedHandler - In the implementation block
@property (copy) id restartGatherEndedHandler;                                            //@synthesize restartGatherEndedHandler=_restartGatherEndedHandler - In the implementation block
@property (assign,nonatomic) BOOL privateIndex;                                           //@synthesize privateIndex=_privateIndex - In the implementation block
@property (assign,nonatomic) BOOL userFSIndex;                                            //@synthesize userFSIndex=_userFSIndex - In the implementation block
@property (assign,nonatomic) BOOL suspended;                                              //@synthesize suspended=_suspended - In the implementation block
@property (nonatomic,retain) NSString * privateBundleID;                                  //@synthesize privateBundleID=_privateBundleID - In the implementation block
@property (getter=isCancelled,readonly) BOOL cancelled; 
@property (readonly) unsigned long long foundItemCount; 
@property (copy) id foundItemsHandler;                                                    //@synthesize foundItemsHandler=_foundItemsHandler - In the implementation block
@property (copy) id completionHandler;                                                    //@synthesize completionHandler=_completionHandler - In the implementation block
@property (copy) NSArray * protectionClasses; 
+(void)initialize;
+(void)preheat:(id)arg1 ;
+(void)userEngagedWithUniqueIdentifier:(id)arg1 bundleId:(id)arg2 forUserQuery:(id)arg3 interactionType:(int)arg4 ;
+(void)setConnectionName:(id)arg1 ;
+(id)_makeQueryErrorWithErrorCode:(long long)arg1 description:(id)arg2 underlyingError:(id)arg3 ;
-(void)cancel;
-(void)_removeIdentifiers:(id)arg1 withBundleID:(id)arg2 andQueryID:(long long)arg3 ;
-(void)setQueryString:(NSString *)arg1 ;
-(void)setProtectionClasses:(NSArray *)arg1 ;
-(void)handleFoundItems:(id)arg1 ;
-(NSMapTable *)liveIndexUserFSOIDTOIdentifierMap;
-(void)setUserFSIndex:(BOOL)arg1 ;
-(void)setPrivateIndex:(BOOL)arg1 ;
-(BOOL)addOrUpdateLiveOID:(long long)arg1 bundleID:(id)arg2 identifier:(id)arg3 ;
-(id)foundItemsHandler;
-(BOOL)removeLiveOID:(long long)arg1 outBundleID:(id*)arg2 outIdentifier:(id*)arg3 ;
-(void)setScopes:(id)arg1 ;
-(id)countChangedHandler;
-(void)setBundleIDs:(id)arg1 ;
-(unsigned long long)foundItemCount;
-(void)_finishWithError:(id)arg1 ;
-(id)connection;
-(BOOL)live;
-(id)options;
-(id)debugDescription;
-(id)interruptedHandler;
-(void)setRemovedItemsHandler:(id)arg1 ;
-(void)dealloc;
-(NSMapTable *)liveIndexBundleIDToBundleString;
-(void)setQueryContext:(CSSearchQueryContext *)arg1 ;
-(void)setChangedItemsHandler:(id)arg1 ;
-(id)scopes;
-(NSMapTable *)liveIndexBundleIDToIndexItemIDMap;
-(void)didResolveFriendlyAttributeNames:(id)arg1 fromFetchAttributes:(id)arg2 ;
-(NSArray *)protectionClasses;
-(void)setRestartGatherEndedHandler:(id)arg1 ;
-(void)setFoundAttributesHandler:(id)arg1 ;
-(void)userEngagedWithResult:(id)arg1 interactionType:(int)arg2 ;
-(id)completionScoresHandler;
-(BOOL)suspended;
-(void)setInterruptedHandler:(id)arg1 ;
-(BOOL)privateIndex;
-(void)processResultFromPlist:(id)arg1 atIndex:(unsigned long long)arg2 protectionClass:(id)arg3 oids:(long long*)arg4 oidCount:(unsigned)arg5 addItems:(id*)arg6 updateItems:(id*)arg7 moveItems:(id*)arg8 ;
-(void)start;
-(id)restartedHandler;
-(NSString *)privateBundleID;
-(id)copyResultFromPlist:(id)arg1 protectionClass:(id)arg2 ;
-(id)init;
-(void)processResultsData:(id)arg1 protectionClass:(id)arg2 ;
-(void)setupFetchAttributesForSearch;
-(void)setCompletionScoresHandler:(id)arg1 ;
-(BOOL)internal;
-(void)setFoundItemsHandler:(id)arg1 ;
-(id)resolvedAttributeNamesHandler;
-(void)handleError:(id)arg1 ;
-(void)didReturnResults:(long long)arg1 resultsData:(id)arg2 oidData:(id)arg3 protectionClass:(id)arg4 completionHandler:(/*^block*/id)arg5 ;
-(id)initWithQueryString:(id)arg1 options:(id)arg2 ;
-(BOOL)isCancelled;
-(void)setLiveIndexBundleIDToBundleString:(NSMapTable *)arg1 ;
-(NSObject*<OS_dispatch_queue>)queue;
-(void)setResolvedAttributeNamesHandler:(id)arg1 ;
-(void)setFoundItemHandler:(id)arg1 ;
-(void)processCompletionsResultsData:(id)arg1 protectionClass:(id)arg2 ;
-(id)copyCSSearchableItemWithValues:(id*)arg1 valueCount:(unsigned long long)arg2 attrKeys:(unsigned long long*)arg3 protectionClass:(id)arg4 mappingStrategy:(id)arg5 attrInfo:(short*)arg6 requestedAttributeCount:(unsigned long long)arg7 unpackInfo:(CSUnpackInfo)arg8 userFSDomain:(id)arg9 ;
-(void)setPrivateBundleID:(NSString *)arg1 ;
-(BOOL)userFSIndex;
-(BOOL)isTopHitQuery;
-(void)processLiveResultsData:(id)arg1 oidData:(id)arg2 protectionClass:(id)arg3 ;
-(double)currentTime;
-(id)removedItemsHandler;
-(id)changedAttributesHandler;
-(id)initWithQueryString:(id)arg1 context:(id)arg2 ;
-(BOOL)removeUserFSLiveOID:(long long)arg1 outBundleID:(id*)arg2 outIdentifier:(id*)arg3 ;
-(BOOL)grouped;
-(void)setCompletionsHandler:(id)arg1 ;
-(id)restartGatherEndedHandler;
-(id)changedItemsHandler;
-(void)setCompletionHandler:(id)arg1 ;
-(id)foundItemHandler;
-(void)processRemoveResultsData:(id)arg1 protectionClass:(id)arg2 ;
-(id)gatherEndedHandler;
-(void)handleCompletion:(id)arg1 ;
-(void)setQueue:(NSObject*<OS_dispatch_queue>)arg1 ;
-(void)setSuspended:(BOOL)arg1 ;
-(void)setCountChangedHandler:(id)arg1 ;
-(void)setRestartedHandler:(id)arg1 ;
-(id)completionsHandler;
-(NSString *)queryString;
-(NSArray *)fetchAttributes;
-(id)initWithQueryString:(id)arg1 attributes:(id)arg2 ;
-(void)didFinishWithError:(id)arg1 ;
-(void)processAttributesData:(id)arg1 update:(BOOL)arg2 protectionClass:(id)arg3 ;
-(void)setLiveIndexUserFSOIDTOIdentifierMap:(NSMapTable *)arg1 ;
-(void)setGatherEndedHandler:(id)arg1 ;
-(void)setChangedAttributesHandler:(id)arg1 ;
-(BOOL)attribute;
-(CSSearchQueryContext *)queryContext;
-(id)bundleIDs;
-(id)description;
-(id)addOrUpdateUserFSLiveOID:(long long)arg1 userFSDomain:(id)arg2 identifier:(id)arg3 ;
-(id)foundAttributesHandler;
-(BOOL)counting;
-(void)setLiveIndexBundleIDToIndexItemIDMap:(NSMapTable *)arg1 ;
-(id)completionHandler;
@end

