text: /*
  * This header is generated by classdump-dyld 1.0
  * on Saturday, June 1, 2019 at 6:51:05 PM Mountain Standard Time
  * Operating System: Version 12.1.1 (Build 16C5050a)
  * Image Source: /System/Library/PrivateFrameworks/HomeKitDaemon.framework/HomeKitDaemon
  * classdump-dyld is licensed under GPLv3, Copyright © 2013-2016 by Elias Limneos.
  */
  
  #import <HMFoundation/HMFObject.h>
  #import <libobjc.A.dylib/APSConnectionDelegate.h>
  
  @protocol OS_dispatch_queue, OS_dispatch_source;
  @class NSObject, CKContainer, CKDatabase, HMDCloudCache, HMFMessageDispatcher, CKServerChangeToken, APSConnection, HMDCloudDataSyncStateFilter, NSUUID, HMDHomeManager, NSMutableArray, HMDCloudLegacyZone, HMDCloudMetadataZone, HMDCloudHomeManagerZone, NSData, NSString;
  
  @interface HMDCloudManager : HMFObject <APSConnectionDelegate> {
  
  	BOOL _accountActive;
  	BOOL _cloudHomeDataRecordExists;
  	BOOL _keychainSyncEnabled;
  	BOOL _firstV3Fetch;
  	int _proxSetupNotificationToken;
  	NSObject*<OS_dispatch_queue> _callbackQueue;
  	CKContainer* _container;
  	CKDatabase* _database;
  	HMDCloudCache* _cloudCache;
  	HMFMessageDispatcher* _configSyncDispatcher;
  	NSObject*<OS_dispatch_queue> _workQueue;
  	/*^block*/id _fetchCompletionHandler;
  	NSObject*<OS_dispatch_queue> _clientCallbackQueue;
  	NSObject*<OS_dispatch_source> _retryTimer;
  	NSObject*<OS_dispatch_source> _pollTimer;
  	NSObject*<OS_dispatch_source> _controllerKeyPollTimer;
  	NSObject*<OS_dispatch_source> _watchdogControllerKeyPollTimer;
  	CKServerChangeToken* _databaseServerChangeToken;
  	APSConnection* _pushConnection;
  	/*^block*/id _cloudDataDeletedNotificationHandler;
  	/*^block*/id _cloudMetadataDeletedNotificationHandler;
  	/*^block*/id _controllerKeyAvailableNotificationHandler;
  	HMDCloudDataSyncStateFilter* _cloudDataSyncStateFilter;
  	NSUUID* _uuid;
  	HMFMessageDispatcher* _msgDispatcher;
  	HMDHomeManager* _homeManager;
  	NSMutableArray* _currentBackoffTimerValuesInMinutes;
  	/*^block*/id _dataDecryptionFailedHandler;
  	/*^block*/id _accountActiveUpdateHandler;
  
  }
  
  @property (nonatomic,retain) CKContainer * container;                                                   //@synthesize container=_container - In the implementation block
  @property (nonatomic,retain) CKDatabase * database;                                                     //@synthesize database=_database - In the implementation block
  @property (nonatomic,retain) HMDCloudCache * cloudCache;                                                //@synthesize cloudCache=_cloudCache - In the implementation block
  @property (nonatomic,readonly) HMDCloudLegacyZone * legacyZone; 
  @property (nonatomic,readonly) HMDCloudMetadataZone * metadataZone; 
  @property (nonatomic,readonly) HMDCloudHomeManagerZone * homeManagerZone; 
  @property (nonatomic,retain) HMFMessageDispatcher * configSyncDispatcher;                               //@synthesize configSyncDispatcher=_configSyncDispatcher - In the implementation block
  @property (nonatomic,retain) NSObject*<OS_dispatch_queue> workQueue;                                    //@synthesize workQueue=_workQueue - In the implementation block
  @property (assign,nonatomic) BOOL accountActive;                                                        //@synthesize accountActive=_accountActive - In the implementation block
  @property (nonatomic,copy) id fetchCompletionHandler;                                                   //@synthesize fetchCompletionHandler=_fetchCompletionHandler - In the implementation block
  @property (nonatomic,retain) NSObject*<OS_dispatch_queue> clientCallbackQueue;                          //@synthesize clientCallbackQueue=_clientCallbackQueue - In the implementation block
  @property (assign,nonatomic) BOOL cloudHomeDataRecordExists;                                            //@synthesize cloudHomeDataRecordExists=_cloudHomeDataRecordExists - In the implementation block
  @property (assign,nonatomic) BOOL keychainSyncEnabled;                                                  //@synthesize keychainSyncEnabled=_keychainSyncEnabled - In the implementation block
  @property (nonatomic,readonly) BOOL decryptionFailed; 
  @property (nonatomic,retain) NSObject*<OS_dispatch_source> retryTimer;                                  //@synthesize retryTimer=_retryTimer - In the implementation block
  @property (nonatomic,retain) NSObject*<OS_dispatch_source> pollTimer;                                   //@synthesize pollTimer=_pollTimer - In the implementation block
  @property (nonatomic,retain) NSObject*<OS_dispatch_source> controllerKeyPollTimer;                      //@synthesize controllerKeyPollTimer=_controllerKeyPollTimer - In the implementation block
  @property (nonatomic,retain) NSObject*<OS_dispatch_source> watchdogControllerKeyPollTimer;              //@synthesize watchdogControllerKeyPollTimer=_watchdogControllerKeyPollTimer - In the implementation block
  @property (nonatomic,retain) CKServerChangeToken * databaseServerChangeToken;                           //@synthesize databaseServerChangeToken=_databaseServerChangeToken - In the implementation block
  @property (nonatomic,retain) APSConnection * pushConnection;                                            //@synthesize pushConnection=_pushConnection - In the implementation block
  @property (nonatomic,copy) id cloudDataDeletedNotificationHandler;                                      //@synthesize cloudDataDeletedNotificationHandler=_cloudDataDeletedNotificationHandler - In the implementation block
  @property (nonatomic,copy) id cloudMetadataDeletedNotificationHandler;                                  //@synthesize cloudMetadataDeletedNotificationHandler=_cloudMetadataDeletedNotificationHandler - In the implementation block
  @property (nonatomic,copy) id controllerKeyAvailableNotificationHandler;                                //@synthesize controllerKeyAvailableNotificationHandler=_controllerKeyAvailableNotificationHandler - In the implementation block
  @property (nonatomic,retain) HMDCloudDataSyncStateFilter * cloudDataSyncStateFilter;                    //@synthesize cloudDataSyncStateFilter=_cloudDataSyncStateFilter - In the implementation block
  @property (nonatomic,retain) NSUUID * uuid;                                                             //@synthesize uuid=_uuid - In the implementation block
  @property (nonatomic,retain) HMFMessageDispatcher * msgDispatcher;                                      //@synthesize msgDispatcher=_msgDispatcher - In the implementation block
  @property (assign,nonatomic,__weak) HMDHomeManager * homeManager;                                       //@synthesize homeManager=_homeManager - In the implementation block
  @property (nonatomic,retain) NSMutableArray * currentBackoffTimerValuesInMinutes;                       //@synthesize currentBackoffTimerValuesInMinutes=_currentBackoffTimerValuesInMinutes - In the implementation block
  @property (assign,nonatomic) int proxSetupNotificationToken;                                            //@synthesize proxSetupNotificationToken=_proxSetupNotificationToken - In the implementation block
  @property (nonatomic,copy) id dataDecryptionFailedHandler;                                              //@synthesize dataDecryptionFailedHandler=_dataDecryptionFailedHandler - In the implementation block
  @property (nonatomic,copy) id accountActiveUpdateHandler;                                               //@synthesize accountActiveUpdateHandler=_accountActiveUpdateHandler - In the implementation block
  @property (assign,getter=isFirstV3Fetch,nonatomic) BOOL firstV3Fetch;                                   //@synthesize firstV3Fetch=_firstV3Fetch - In the implementation block
  @property (nonatomic,readonly) NSData * serverTokenData; 
  @property (nonatomic,retain) NSObject*<OS_dispatch_queue> callbackQueue;                                //@synthesize callbackQueue=_callbackQueue - In the implementation block
  @property (readonly) unsigned long long hash; 
  @property (readonly) Class superclass; 
  @property (copy,readonly) NSString * description; 
  @property (copy,readonly) NSString * debugDescription; 
  +(BOOL)isControllerKeyAvailable;
  -(NSObject*<OS_dispatch_queue>)workQueue;
  -(void)setCallbackQueue:(NSObject*<OS_dispatch_queue>)arg1 ;
  -(NSObject*<OS_dispatch_queue>)callbackQueue;
  -(void)setWorkQueue:(NSObject*<OS_dispatch_queue>)arg1 ;
  -(CKDatabase *)database;
  -(void)setDatabase:(CKDatabase *)arg1 ;
  -(HMDHomeManager *)homeManager;
  -(BOOL)accountActive;
  -(HMFMessageDispatcher *)msgDispatcher;
  -(void)setMsgDispatcher:(HMFMessageDispatcher *)arg1 ;
  -(void)setHomeManager:(HMDHomeManager *)arg1 ;
  -(NSObject*<OS_dispatch_source>)retryTimer;
  -(void)setRetryTimer:(NSObject*<OS_dispatch_source>)arg1 ;
  -(HMDCloudDataSyncStateFilter *)cloudDataSyncStateFilter;
  -(BOOL)decryptionFailed;
  -(void)setKeychainSyncEnabled:(BOOL)arg1 ;
  -(void)resetCloudServerTokenData:(id)arg1 ;
  -(void)handleKeychainStateChangedNotification:(id)arg1 ;
  -(void)_registerForProxSetupNotifications;
  -(void)__addCKDatabaseOperation:(id)arg1 ;
  -(void)__deleteRecordZonesWithIDs:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(HMDCloudCache *)cloudCache;
  -(HMDCloudLegacyZone *)legacyZone;
  -(HMDCloudMetadataZone *)metadataZone;
  -(HMDCloudHomeManagerZone *)homeManagerZone;
  -(void)_addHomeZoneName:(id)arg1 owner:(id)arg2 ;
  -(void)_setupSubscriptionForZone:(id)arg1 ;
  -(void)_removeHomeZoneName:(id)arg1 ;
  -(NSObject*<OS_dispatch_queue>)clientCallbackQueue;
  -(void)_fetchTransaction:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)_checkZoneAndUploadTransaction:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)_uploadTransaction:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)__saveRecordZone:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)__deleteRecordZoneWithID:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)_createZoneAndUploadTransaction:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)__fetchRecordZoneWithID:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)_verifyZoneHasBeenDeletedTransaction:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)_removeZonesTransactions:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)_uploadLegacyTransaction:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)setCloudHomeDataRecordExists:(BOOL)arg1 ;
  -(void)_resetCloudDataAndDeleteMetadataForCurrentAccount:(BOOL)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)_resetCloudZonesIgnoreHomeManager:(BOOL)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)__fetchAllRecordZonesWithCompletionHandler:(/*^block*/id)arg1 ;
  -(void)_resetCloudServerTokenData;
  -(void)_stopFetchRetryTimer;
  -(void)_updateServerTokenStatusOnCloudFilter;
  -(void)_resetCloudCache:(/*^block*/id)arg1 ;
  -(void)setCloudCache:(HMDCloudCache *)arg1 ;
  -(void)updateServerTokenStatusOnCloudFilter;
  -(id)_serverTokenData;
  -(void)_handleAccountStatus:(long long)arg1 completionHandler:(/*^block*/id)arg2 error:(id)arg3 ;
  -(void)setFetchCompletionHandler:(id)arg1 ;
  -(void)setCloudDataDeletedNotificationHandler:(id)arg1 ;
  -(void)setCloudMetadataDeletedNotificationHandler:(id)arg1 ;
  -(void)setControllerKeyAvailableNotificationHandler:(id)arg1 ;
  -(void)setDataDecryptionFailedHandler:(id)arg1 ;
  -(void)setAccountActiveUpdateHandler:(id)arg1 ;
  -(void)_fetchLegacyTransaction:(id)arg1 forceFetch:(BOOL)arg2 accountCompletionHandler:(/*^block*/id)arg3 dataCompletionHandler:(/*^block*/id)arg4 ;
  -(id)cloudMetadataDeletedNotificationHandler;
  -(void)_forceCleanCloud:(BOOL)arg1 fetchTransaction:(id)arg2 completionHandler:(/*^block*/id)arg3 ;
  -(void)_resetHomeDataRecordState;
  -(BOOL)keychainSyncEnabled;
  -(void)_startControllerKeyPollTimer;
  -(BOOL)cloudHomeDataRecordExists;
  -(BOOL)_processFetchedTransaction:(id)arg1 ;
  -(void)_processFetchCompletedWithError:(id)arg1 serverToken:(id)arg2 fetchTransaction:(id)arg3 migrationOptions:(long long)arg4 completionHandler:(/*^block*/id)arg5 moreRecordsComing:(BOOL)arg6 emptyRecord:(BOOL)arg7 ;
  -(void)setFirstV3Fetch:(BOOL)arg1 ;
  -(BOOL)isFirstV3Fetch;
  -(NSObject*<OS_dispatch_source>)watchdogControllerKeyPollTimer;
  -(BOOL)_isProxSetupRunning;
  -(NSMutableArray *)currentBackoffTimerValuesInMinutes;
  -(void)setCurrentBackoffTimerValuesInMinutes:(NSMutableArray *)arg1 ;
  -(void)_startControllerKeyPollTimerWithBackoff;
  -(id)dataDecryptionFailedHandler;
  -(void)_fetchAndVerifyZoneRootRecord:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)_removeAllHomeZonesCompletionHandler:(/*^block*/id)arg1 ;
  -(BOOL)_validFetchRetryCKErrorCode:(long long)arg1 ;
  -(void)_startFetchRetryTimer;
  -(void)fetchCurrentAccountStateWithCompletionHandler:(/*^block*/id)arg1 ;
  -(void)_createZoneAndFetchChanges:(/*^block*/id)arg1 ;
  -(void)_registerForPushNotifications;
  -(void)setAccountActive:(BOOL)arg1 ;
  -(void)_stopFetchPollTimer;
  -(void)_stopControllerKeyPollTimer;
  -(void)_accountIsActive;
  -(void)_verifyZonesExist:(id)arg1 zoneIndex:(unsigned long long)arg2 completion:(/*^block*/id)arg3 ;
  -(void)_handleKeychainSyncStateChanged:(BOOL)arg1 ;
  -(void)_startFetchPollTimer;
  -(id)accountActiveUpdateHandler;
  -(id)cloudDataDeletedNotificationHandler;
  -(void)__deleteRecordWithID:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)setPollTimer:(NSObject*<OS_dispatch_source>)arg1 ;
  -(NSObject*<OS_dispatch_source>)pollTimer;
  -(void)_handleControllerKeyAvailable;
  -(id)controllerKeyAvailableNotificationHandler;
  -(void)_stopWatchdogControllerKeyPollTimer;
  -(void)setWatchdogControllerKeyPollTimer:(NSObject*<OS_dispatch_source>)arg1 ;
  -(void)_startControllerKeyPollTimerWithValue:(long long)arg1 ;
  -(void)setControllerKeyPollTimer:(NSObject*<OS_dispatch_source>)arg1 ;
  -(NSObject*<OS_dispatch_source>)controllerKeyPollTimer;
  -(int)proxSetupNotificationToken;
  -(void)_startWatchdogControllerKeyPollTimer;
  -(void)_auditProxSetupNotification;
  -(void)__saveSubscription:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)__fetchSubscriptionWithID:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)setPushConnection:(APSConnection *)arg1 ;
  -(APSConnection *)pushConnection;
  -(void)_fetchDatabaseZoneChanges;
  -(CKServerChangeToken *)databaseServerChangeToken;
  -(void)_scheduleZoneFetch:(id)arg1 ;
  -(void)setDatabaseServerChangeToken:(CKServerChangeToken *)arg1 ;
  -(void)fetchDatabaseZoneChanges;
  -(void)connection:(id)arg1 didReceivePublicToken:(id)arg2 ;
  -(void)connection:(id)arg1 didReceiveToken:(id)arg2 forTopic:(id)arg3 identifier:(id)arg4 ;
  -(void)connection:(id)arg1 didReceiveIncomingMessage:(id)arg2 ;
  -(id)initWithMessageDispatcher:(id)arg1 cloudDataSyncStateFilter:(id)arg2 cloudCache:(id)arg3 homeManager:(id)arg4 callbackQueue:(id)arg5 ;
  -(BOOL)legacyZoneHasRecordsAvaliable;
  -(void)addHomeZoneName:(id)arg1 owner:(id)arg2 ;
  -(void)removeHomeZoneName:(id)arg1 ;
  -(void)fetchTransaction:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)uploadTransaction:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)removeZonesTransactions:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)uploadLegacyTransaction:(id)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)resetCloudDataAndDeleteMetadataForCurrentAccount:(BOOL)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(void)resetCloudCache:(/*^block*/id)arg1 ;
  -(NSData *)serverTokenData;
  -(void)setDataAvailableFromCloudCompletionBlock:(/*^block*/id)arg1 ;
  -(void)setCloudDataDeletedNotificationBlock:(/*^block*/id)arg1 ;
  -(void)setCloudMetadataDeletedNotificationBlock:(/*^block*/id)arg1 ;
  -(void)setControllerKeyAvailableNotificationBlock:(/*^block*/id)arg1 ;
  -(void)setDataDecryptionFailedCompletionBlock:(/*^block*/id)arg1 ;
  -(void)setAccountActiveUpdateCallback:(/*^block*/id)arg1 ;
  -(void)fetchLegacyTransaction:(id)arg1 forceFetch:(BOOL)arg2 accountCompletionHandler:(/*^block*/id)arg3 dataCompletionHandler:(/*^block*/id)arg4 ;
  -(void)updateAccountStatusChanged:(BOOL)arg1 completionHandler:(/*^block*/id)arg2 ;
  -(id)_changeTokenFromData:(id)arg1 ;
  -(void)updateCloudDataSyncFilterState:(BOOL)arg1 ;
  -(void)initializeServerTokenStatusOnCloudFilter;
  -(HMFMessageDispatcher *)configSyncDispatcher;
  -(void)setConfigSyncDispatcher:(HMFMessageDispatcher *)arg1 ;
  -(id)fetchCompletionHandler;
  -(void)setClientCallbackQueue:(NSObject*<OS_dispatch_queue>)arg1 ;
  -(void)setCloudDataSyncStateFilter:(HMDCloudDataSyncStateFilter *)arg1 ;
  -(void)setProxSetupNotificationToken:(int)arg1 ;
  -(void)dealloc;
  -(void)setUuid:(NSUUID *)arg1 ;
  -(NSUUID *)uuid;
  -(CKContainer *)container;
  -(void)setContainer:(CKContainer *)arg1 ;
  @end
  
  