// // Copyright (c) 2017 Open Whisper Systems. All rights reserved. // NS_ASSUME_NONNULL_BEGIN @protocol ContactsManagerProtocol; @class OWSMessageSender; @protocol NotificationsProtocol; @protocol OWSCallMessageHandler; @protocol ProfileManagerProtocol; @interface TextSecureKitEnv : NSObject - (instancetype)initWithCallMessageHandler:(id)callMessageHandler contactsManager:(id)contactsManager messageSender:(OWSMessageSender *)messageSender notificationsManager:(id)notificationsManager profileManager:(id)profileManager NS_DESIGNATED_INITIALIZER; - (instancetype)init NS_UNAVAILABLE; + (instancetype)sharedEnv; + (void)setSharedEnv:(TextSecureKitEnv *)env; @property (nonatomic, readonly) id callMessageHandler; @property (nonatomic, readonly) id contactsManager; @property (nonatomic, readonly) OWSMessageSender *messageSender; @property (nonatomic, readonly) id notificationsManager; @property (nonatomic, readonly) id profileManager; @end NS_ASSUME_NONNULL_END