#import <Foundation/Foundation.h>
#if OCTAGON
#import <CloudKit/CloudKit.h>
#import <ApplePushService/ApplePushService.h>
#import "keychain/ckks/CloudKitDependencies.h"
#import "keychain/ckks/CKKSCondition.h"
@protocol CKKSZoneUpdateReceiver
- (void)notifyZoneChange: (CKRecordZoneNotification*) notification;
@end
@interface CKKSAPSReceiver : NSObject <APSConnectionDelegate>
@property NSMapTable<CKRecordZoneID*, id<CKKSZoneUpdateReceiver>>* zoneMap;
@property (readonly) Class<CKKSAPSConnection> apsConnectionClass;
@property id<CKKSAPSConnection> apsConnection;
+ (instancetype)receiverForEnvironment:(NSString*)environmentName
namedDelegatePort:(NSString*)namedDelegatePort
apsConnectionClass:(Class<CKKSAPSConnection>)apsConnectionClass;
- (CKKSCondition*)register:(id<CKKSZoneUpdateReceiver>)receiver forZoneID:(CKRecordZoneID *)zoneID;
- (instancetype)initWithEnvironmentName:(NSString*)environmentName
namedDelegatePort:(NSString*)namedDelegatePort
apsConnectionClass:(Class<CKKSAPSConnection>)apsConnectionClass;
+ (dispatch_queue_t)apsDeliveryQueue;
@end
#endif // OCTAGON