// Generated by Apple Swift version 4.1 (swiftlang-902.0.48 clang-902.0.37.1)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"

#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif

#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif

#pragma clang diagnostic ignored "-Wauto-import"
#include <objc/NSObject.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>

#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
#  include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2  __attribute__((__ext_vector_type__(2)));
typedef float swift_float3  __attribute__((__ext_vector_type__(3)));
typedef float swift_float4  __attribute__((__ext_vector_type__(4)));
typedef double swift_double2  __attribute__((__ext_vector_type__(2)));
typedef double swift_double3  __attribute__((__ext_vector_type__(3)));
typedef double swift_double4  __attribute__((__ext_vector_type__(4)));
typedef int swift_int2  __attribute__((__ext_vector_type__(2)));
typedef int swift_int3  __attribute__((__ext_vector_type__(3)));
typedef int swift_int4  __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2  __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3  __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4  __attribute__((__ext_vector_type__(4)));
#endif

#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
#  define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
#  define SWIFT_CLASS_PROPERTY(...)
# endif
#endif

#if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#else
# define SWIFT_COMPILE_NAME(X)
#endif
#if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
#else
# define SWIFT_METHOD_FAMILY(X)
#endif
#if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
#else
# define SWIFT_NOESCAPE
#endif
#if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SWIFT_WARN_UNUSED_RESULT
#endif
#if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
#else
# define SWIFT_NORETURN
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
#  define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
#  define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif

#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif

#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif

#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
#  define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
#  define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
#  define SWIFT_ENUM_ATTR __attribute__((enum_extensibility(open)))
# else
#  define SWIFT_ENUM_ATTR
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type
# else
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) SWIFT_ENUM(_type, _name)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
#else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
#endif
#if __has_feature(modules)
@import ObjectiveC;
@import CoreBluetooth;
@import CoreLocation;
@import Foundation;
#endif

#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"

#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="ConnectPlaceCommon",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif


SWIFT_PROTOCOL_NAMED("AppStateDelegate")
@protocol CTAppStateDelegate
/// Notify when the application enters in foreground
- (void)onAppInForeground;
/// Notify when the application enters in background
- (void)onAppInBackground;
@end


SWIFT_CLASS_NAMED("AppStateDetector")
@interface AdtagAppStateDetector : NSObject <CTAppStateDelegate>
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (void)onAppInForeground;
- (void)onAppInBackground;
@end

@class CBCentralManager;

SWIFT_CLASS("_TtC18ConnectPlaceCommon19BluetoothDispatcher")
@interface BluetoothDispatcher : NSObject <CBCentralManagerDelegate>
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (void)centralManagerDidUpdateState:(CBCentralManager * _Nonnull)central;
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon27BluetoothHealthCheckManager")
@interface BluetoothHealthCheckManager : NSObject <CBCentralManagerDelegate>
- (void)centralManagerDidUpdateState:(CBCentralManager * _Nonnull)central;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end




SWIFT_PROTOCOL("_TtP18ConnectPlaceCommon24CameraPermissionDelegate_")
@protocol CameraPermissionDelegate
@property (nonatomic, readonly) NSInteger hashValue;
- (void)onCameraAccessGranted;
- (void)onCameraAccessDenied;
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon23CameraPermissionManager")
@interface CameraPermissionManager : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end


/// Generic interface to save/load key/value sets
SWIFT_PROTOCOL("_TtP18ConnectPlaceCommon14DataHolderObjc_")
@protocol DataHolderObjc
/// Set a float value to be written back
/// @param key   The name of the property to modify.
/// @param value The new value for the property.
- (void)putFloatWithKey:(NSString * _Nonnull)key value:(float)value;
/// @param key the name of the property to retrieve
/// @return the preference value if it exists, or 0.f.
- (float)getFloatWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
/// Set an int value to be written back
/// @param key   The name of the property to modify.
/// @param value The new value for the property.
- (void)putIntWithKey:(NSString * _Nonnull)key value:(NSInteger)value;
/// @param key the name of the property to retrieve
/// @return the preference value if it exists, or 0.
- (NSInteger)getIntWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
/// Set a boolean value to be written back
/// @param key   The name of the property to modify.
/// @param value The new value for the property.
- (void)putBooleanWithKey:(NSString * _Nonnull)key value:(BOOL)value;
/// @param key the name of the property to retrieve
/// @return the preference value if it exists, or false.
- (BOOL)getBooleanWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
/// Set a String value to be written back
/// @param key   The name of the property to modify.
/// @param value The new value for the property.
- (void)putStringWithKey:(NSString * _Nonnull)key value:(NSString * _Nonnull)value;
/// @param key the name of the property to retrieve
/// @return the preference value if it exists, or nil.
- (NSString * _Nullable)getStringWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
/// Set a Data value to be written back
/// @param key   The name of the property to modify.
/// @param value The new value for the property.
- (void)putDataWithKey:(NSString * _Nonnull)key value:(NSData * _Nonnull)value;
/// @param key the name of the property to retrieve
/// @return the preference value if it exists, or nil.
- (NSData * _Nullable)getDataWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
/// Set an object to be written back. The object need to conform to NSCoding protocol to be saved
/// @param key   The name of the property to modify.
/// @param value The new value for the property.
- (void)saveNSCodingObjectWithKey:(NSString * _Nonnull)key value:(id _Nonnull)value;
/// @param key the name of the property to retrieve
/// @return the preference value if it exists, or nil.
- (id _Nullable)loadNSCodingObjectWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
/// Remove all the properties
- (void)clear;
/// apply any pending updates
- (void)apply;
/// @param key
/// @return true if the key is in the dataHolder
- (BOOL)containsWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon22DataHolderUserDefaults")
@interface DataHolderUserDefaults : NSObject <DataHolderObjc>
- (void)putFloatWithKey:(NSString * _Nonnull)key value:(float)value;
- (float)getFloatWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
- (void)putIntWithKey:(NSString * _Nonnull)key value:(NSInteger)value;
- (NSInteger)getIntWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
- (void)putBooleanWithKey:(NSString * _Nonnull)key value:(BOOL)value;
- (BOOL)getBooleanWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
- (void)putStringWithKey:(NSString * _Nonnull)key value:(NSString * _Nonnull)value;
- (NSString * _Nullable)getStringWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
- (void)putDataWithKey:(NSString * _Nonnull)key value:(NSData * _Nonnull)value;
- (NSData * _Nullable)getDataWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
- (void)saveNSCodingObjectWithKey:(NSString * _Nonnull)key value:(id _Nonnull)value;
- (id _Nullable)loadNSCodingObjectWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
- (void)clear;
- (void)apply;
- (BOOL)containsWithKey:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end



@class ServiceStatus;

SWIFT_CLASS("_TtC18ConnectPlaceCommon12HealthStatus")
@interface HealthStatus : NSObject
@property (nonatomic, readonly) BOOL isDown;
@property (nonatomic, readonly, copy) NSDictionary<NSNumber *, ServiceStatus *> * _Nonnull serviceStatusMap;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end

@class CLLocationManager;
@class CLBeacon;
@class CLBeaconRegion;
@class CLRegion;
@class CLVisit;

/// dispatch the result of the CLLocationManagerDelegate to multiple CLLocationManager.
SWIFT_CLASS("_TtC18ConnectPlaceCommon18LocationDispatcher")
@interface LocationDispatcher : NSObject <CLLocationManagerDelegate>
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (void)locationManager:(CLLocationManager * _Nonnull)manager didRangeBeacons:(NSArray<CLBeacon *> * _Nonnull)beacons inRegion:(CLBeaconRegion * _Nonnull)region;
- (void)locationManager:(CLLocationManager * _Nonnull)manager didEnterRegion:(CLRegion * _Nonnull)region;
- (void)locationManager:(CLLocationManager * _Nonnull)manager didExitRegion:(CLRegion * _Nonnull)region;
- (void)locationManager:(CLLocationManager * _Nonnull)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status;
- (void)locationManagerDidPauseLocationUpdates:(CLLocationManager * _Nonnull)manager;
- (void)locationManagerDidResumeLocationUpdates:(CLLocationManager * _Nonnull)manager;
- (void)locationManager:(CLLocationManager * _Nonnull)manager didUpdateLocations:(NSArray<CLLocation *> * _Nonnull)locations;
- (void)locationManager:(CLLocationManager * _Nonnull)manager didVisit:(CLVisit * _Nonnull)visit;
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon26LocationHealthCheckManager")
@interface LocationHealthCheckManager : NSObject <CTAppStateDelegate>
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (void)onAppInForeground;
- (void)onAppInBackground;
@end


/// An implementation of the BeaconManager based on the CLLocationManager
SWIFT_CLASS("_TtC18ConnectPlaceCommon27LocationManagerCoreLocation")
@interface LocationManagerCoreLocation : NSObject <CLLocationManagerDelegate>
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon36LocationPermissionHealthCheckManager")
@interface LocationPermissionHealthCheckManager : NSObject <CLLocationManagerDelegate>
- (void)locationManager:(CLLocationManager * _Nonnull)manager didChangeAuthorizationStatus:(CLAuthorizationStatus)status;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

typedef SWIFT_ENUM(int16_t, MotionHealthCheckError) {
  MotionHealthCheckErrorNotDetermined = 71,
  MotionHealthCheckErrorNotGranted = 72,
  MotionHealthCheckErrorRestricted = 73,
  MotionHealthCheckErrorNotAvailable = 74,
  MotionHealthCheckErrorNotEntitled = 75,
};


SWIFT_CLASS("_TtC18ConnectPlaceCommon24MotionHealthCheckManager")
@interface MotionHealthCheckManager : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end








SWIFT_CLASS("_TtC18ConnectPlaceCommon12OpenUrlUtils")
@interface OpenUrlUtils : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class NSString;

SWIFT_PROTOCOL_NAMED("Place")
@protocol AdtagPlace
/// To identify a place - the id make the link with a remote backend or a local DB
///
/// returns:
/// the id of the place
- (NSString * _Nonnull)getId SWIFT_WARN_UNUSED_RESULT;
@end


/// Replicate the CLBeacon interface and implements the Place protocol
SWIFT_CLASS("_TtC18ConnectPlaceCommon11PlaceBeacon")
@interface PlaceBeacon : NSObject <AdtagPlace>
- (NSString * _Nonnull)getId SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end




SWIFT_PROTOCOL_NAMED("PlaceContent")
@protocol CTPlaceContent
/// To get the id of the place - must return the same id than the one of the Place class
///
/// returns:
/// the id of the place associated to the content
- (NSString * _Nonnull)getPlaceId SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_PROTOCOL("_TtP18ConnectPlaceCommon28ProximityHealthCheckDelegate_")
@protocol ProximityHealthCheckDelegate
@property (nonatomic, readonly) NSInteger hashValue;
- (void)onProximityHealthCheckUpdate:(HealthStatus * _Nonnull)healthStatus;
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon27ProximityHealthCheckManager")
@interface ProximityHealthCheckManager : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

@class Status;

SWIFT_CLASS("_TtC18ConnectPlaceCommon13ServiceStatus")
@interface ServiceStatus : NSObject
@property (nonatomic, readonly) int16_t type;
@property (nonatomic, readonly, copy) NSArray<Status *> * _Nonnull statusList;
- (BOOL)isDown SWIFT_WARN_UNUSED_RESULT;
- (BOOL)containsStatusWithCode:(int16_t)code SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon6Status")
@interface Status : NSObject
@property (nonatomic, readonly) int16_t code;
@property (nonatomic, readonly, strong) NSString * _Nonnull message;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end


SWIFT_PROTOCOL("_TtP18ConnectPlaceCommon12TimeProvider_")
@protocol TimeProvider
- (double)getTime SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon20TimeProviderAbsolute")
@interface TimeProviderAbsolute : NSObject <TimeProvider>
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (double)getTime SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon20TimeProviderRelative")
@interface TimeProviderRelative : NSObject <TimeProvider>
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (double)getTime SWIFT_WARN_UNUSED_RESULT;
@end


SWIFT_CLASS("_TtC18ConnectPlaceCommon22WifiHealthCheckManager")
@interface WifiHealthCheckManager : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end

#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
