#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.2.3 effective-5.10 (swiftlang-6.2.3.3.21 clang-1700.6.3.2)
#ifndef AIRBRIDGE_SWIFT_H
#define AIRBRIDGE_SWIFT_H
#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"
#if defined(__OBJC__)
#include <Foundation/Foundation.h>
#endif
#if defined(__cplusplus)
#include <cstdint>
#include <cstddef>
#include <cstdbool>
#include <cstring>
#include <stdlib.h>
#include <new>
#include <type_traits>
#else
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#endif
#if defined(__cplusplus)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
#if defined(__arm64e__) && __has_include(<ptrauth.h>)
# include <ptrauth.h>
#else
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wreserved-macro-identifier"
# ifndef __ptrauth_swift_value_witness_function_pointer
#  define __ptrauth_swift_value_witness_function_pointer(x)
# endif
# ifndef __ptrauth_swift_class_method_pointer
#  define __ptrauth_swift_class_method_pointer(x)
# endif
#pragma clang diagnostic pop
#endif
#pragma clang diagnostic pop
#endif

#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
#  include <uchar.h>
# elif !defined(__cplusplus)
typedef unsigned char char8_t;
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 !defined(SWIFT_RUNTIME_NAME)
# if __has_attribute(objc_runtime_name)
#  define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
# else
#  define SWIFT_RUNTIME_NAME(X) 
# endif
#endif
#if !defined(SWIFT_COMPILE_NAME)
# if __has_attribute(swift_name)
#  define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
# else
#  define SWIFT_COMPILE_NAME(X) 
# endif
#endif
#if !defined(SWIFT_METHOD_FAMILY)
# if __has_attribute(objc_method_family)
#  define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
# else
#  define SWIFT_METHOD_FAMILY(X) 
# endif
#endif
#if !defined(SWIFT_NOESCAPE)
# if __has_attribute(noescape)
#  define SWIFT_NOESCAPE __attribute__((noescape))
# else
#  define SWIFT_NOESCAPE 
# endif
#endif
#if !defined(SWIFT_RELEASES_ARGUMENT)
# if __has_attribute(ns_consumed)
#  define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
# else
#  define SWIFT_RELEASES_ARGUMENT 
# endif
#endif
#if !defined(SWIFT_WARN_UNUSED_RESULT)
# if __has_attribute(warn_unused_result)
#  define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
# else
#  define SWIFT_WARN_UNUSED_RESULT 
# endif
#endif
#if !defined(SWIFT_NORETURN)
# if __has_attribute(noreturn)
#  define SWIFT_NORETURN __attribute__((noreturn))
# else
#  define SWIFT_NORETURN 
# endif
#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_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
#  define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
#  define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
#  define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
#  define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# 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 __has_attribute(enum_extensibility)
#  define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
#  define SWIFT_ENUM_ATTR(_extensibility) 
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
#  define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# 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_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#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 !defined(SWIFT_DEPRECATED_OBJC)
# 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
#endif
#if defined(__OBJC__)
#if !defined(IBSegueAction)
# define IBSegueAction 
#endif
#endif
#if !defined(SWIFT_EXTERN)
# if defined(__cplusplus)
#  define SWIFT_EXTERN extern "C"
# else
#  define SWIFT_EXTERN extern
# endif
#endif
#if !defined(SWIFT_CALL)
# define SWIFT_CALL __attribute__((swiftcall))
#endif
#if !defined(SWIFT_INDIRECT_RESULT)
# define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
#endif
#if !defined(SWIFT_CONTEXT)
# define SWIFT_CONTEXT __attribute__((swift_context))
#endif
#if !defined(SWIFT_ERROR_RESULT)
# define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
#endif
#if defined(__cplusplus)
# define SWIFT_NOEXCEPT noexcept
#else
# define SWIFT_NOEXCEPT 
#endif
#if !defined(SWIFT_C_INLINE_THUNK)
# if __has_attribute(always_inline)
# if __has_attribute(nodebug)
#  define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
# else
#  define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
# endif
# else
#  define SWIFT_C_INLINE_THUNK inline
# endif
#endif
#if defined(_WIN32)
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
#endif
#else
#if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
# define SWIFT_IMPORT_STDLIB_SYMBOL 
#endif
#endif
#if defined(__OBJC__)
#if __has_feature(objc_modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import Foundation;
@import ObjectiveC;
#endif

#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"
#pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
#pragma clang diagnostic ignored "-Wunsafe-buffer-usage"

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

#if defined(__OBJC__)

@class AirbridgeOption;
SWIFT_CLASS("_TtC9Airbridge18AirbridgeInterface")
@interface AirbridgeInterface : NSObject
/// Enables SDK to developer can utilize every features
/// with holding <code>AirbridgeOption</code> and calling <code>enableSDK()</code>.
/// note:
/// If <code>AirbridgeOption</code>’s <code>isSDKEnabled</code> is false, <code>enableSDK()</code> is not called.
/// Developer must manually call <code>enableSDK()</code> later.
/// warning:
/// If developer calls <code>initializeSDK(option:)</code> twice or more,
/// second call or later are ignored.
/// \param option <code>AirbridgeOption</code> to hold
///
+ (void)initializeSDKWithOption:(AirbridgeOption * _Nonnull)option;
/// Indicates that developer can utilize features of SDK.
/// note:
/// If <code>isSDKEnabled</code> is false, every static methods of <code>Airbridge/Airbridge</code>
/// do nothing or return false.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL isSDKEnabled;)
+ (BOOL)isSDKEnabled SWIFT_WARN_UNUSED_RESULT;
+ (void)enableSDK;
/// Deallocates every components of SDK.
/// note:
/// If <code>isSDKEnabled</code> is false, do nothing.
+ (void)disableSDK;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

/// Utilizes every features of SDK with static methods.
/// note:
/// <code>initializeSDK(option:)</code> must be called before using static methods.
SWIFT_CLASS("_TtC9Airbridge9Airbridge")
@interface Airbridge : AirbridgeInterface
@end

/// Contains key of semantic attributes.
SWIFT_CLASS("_TtC9Airbridge18AirbridgeAttribute")
@interface AirbridgeAttribute : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class NSString;
@interface AirbridgeAttribute (SWIFT_EXTENSION(Airbridge))
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACTION;)
+ (NSString * _Nonnull)ACTION SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull LABEL;)
+ (NSString * _Nonnull)LABEL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull VALUE;)
+ (NSString * _Nonnull)VALUE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull CURRENCY;)
+ (NSString * _Nonnull)CURRENCY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCTS;)
+ (NSString * _Nonnull)PRODUCTS SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PERIOD;)
+ (NSString * _Nonnull)PERIOD SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull IS_RENEWAL;)
+ (NSString * _Nonnull)IS_RENEWAL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull RENEWAL_COUNT;)
+ (NSString * _Nonnull)RENEWAL_COUNT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_LIST_ID;)
+ (NSString * _Nonnull)PRODUCT_LIST_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull CART_ID;)
+ (NSString * _Nonnull)CART_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TRANSACTION_ID;)
+ (NSString * _Nonnull)TRANSACTION_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TRANSACTION_TYPE;)
+ (NSString * _Nonnull)TRANSACTION_TYPE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TRANSACTION_PAIRED_EVENT_CATEGORY;)
+ (NSString * _Nonnull)TRANSACTION_PAIRED_EVENT_CATEGORY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TRANSACTION_PAIRED_EVENT_TIMESTAMP;)
+ (NSString * _Nonnull)TRANSACTION_PAIRED_EVENT_TIMESTAMP SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TOTAL_QUANTITY;)
+ (NSString * _Nonnull)TOTAL_QUANTITY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull QUERY;)
+ (NSString * _Nonnull)QUERY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull IN_APP_PURCHASED;)
+ (NSString * _Nonnull)IN_APP_PURCHASED SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull CONTRIBUTION_MARGIN;)
+ (NSString * _Nonnull)CONTRIBUTION_MARGIN SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull LIST_ID;)
+ (NSString * _Nonnull)LIST_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull RATE_ID;)
+ (NSString * _Nonnull)RATE_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull RATE;)
+ (NSString * _Nonnull)RATE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull MAX_RATE;)
+ (NSString * _Nonnull)MAX_RATE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACHIEVEMENT_ID;)
+ (NSString * _Nonnull)ACHIEVEMENT_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SHARED_CHANNEL;)
+ (NSString * _Nonnull)SHARED_CHANNEL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull DATE_TIME;)
+ (NSString * _Nonnull)DATE_TIME SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull DESCRIPTION;)
+ (NSString * _Nonnull)DESCRIPTION SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull IS_REVENUE;)
+ (NSString * _Nonnull)IS_REVENUE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PLACE;)
+ (NSString * _Nonnull)PLACE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SCHEDULE_ID;)
+ (NSString * _Nonnull)SCHEDULE_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TYPE;)
+ (NSString * _Nonnull)TYPE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull LEVEL;)
+ (NSString * _Nonnull)LEVEL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SCORE;)
+ (NSString * _Nonnull)SCORE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_ID;)
+ (NSString * _Nonnull)PRODUCT_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_NAME;)
+ (NSString * _Nonnull)PRODUCT_NAME SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_PRICE;)
+ (NSString * _Nonnull)PRODUCT_PRICE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_QUANTITY;)
+ (NSString * _Nonnull)PRODUCT_QUANTITY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_CURRENCY;)
+ (NSString * _Nonnull)PRODUCT_CURRENCY SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_POSITION;)
+ (NSString * _Nonnull)PRODUCT_POSITION SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_CATEGORY_ID;)
+ (NSString * _Nonnull)PRODUCT_CATEGORY_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_CATEGORY_NAME;)
+ (NSString * _Nonnull)PRODUCT_CATEGORY_NAME SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_BRAND_ID;)
+ (NSString * _Nonnull)PRODUCT_BRAND_ID SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_BRAND_NAME;)
+ (NSString * _Nonnull)PRODUCT_BRAND_NAME SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AD_PARTNERS;)
+ (NSString * _Nonnull)AD_PARTNERS SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull IS_FIRST_PER_USER;)
+ (NSString * _Nonnull)IS_FIRST_PER_USER SWIFT_WARN_UNUSED_RESULT;
@end

/// Contains category of standard events.
SWIFT_CLASS("_TtC9Airbridge17AirbridgeCategory")
@interface AirbridgeCategory : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@interface AirbridgeCategory (SWIFT_EXTENSION(Airbridge))
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SIGN_UP;)
+ (NSString * _Nonnull)SIGN_UP SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SIGN_IN;)
+ (NSString * _Nonnull)SIGN_IN SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SIGN_OUT;)
+ (NSString * _Nonnull)SIGN_OUT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull HOME_VIEWED;)
+ (NSString * _Nonnull)HOME_VIEWED SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_LIST_VIEWED;)
+ (NSString * _Nonnull)PRODUCT_LIST_VIEWED SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SEARCH_RESULTS_VIEWED;)
+ (NSString * _Nonnull)SEARCH_RESULTS_VIEWED SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull PRODUCT_VIEWED;)
+ (NSString * _Nonnull)PRODUCT_VIEWED SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ADD_PAYMENT_INFO;)
+ (NSString * _Nonnull)ADD_PAYMENT_INFO SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ADD_TO_WISHLIST;)
+ (NSString * _Nonnull)ADD_TO_WISHLIST SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ADDED_TO_CART;)
+ (NSString * _Nonnull)ADDED_TO_CART SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull INITIATE_CHECKOUT;)
+ (NSString * _Nonnull)INITIATE_CHECKOUT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ORDER_COMPLETED;)
+ (NSString * _Nonnull)ORDER_COMPLETED SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ORDER_CANCELED;)
+ (NSString * _Nonnull)ORDER_CANCELED SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull START_TRIAL;)
+ (NSString * _Nonnull)START_TRIAL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SUBSCRIBE;)
+ (NSString * _Nonnull)SUBSCRIBE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull UNSUBSCRIBE;)
+ (NSString * _Nonnull)UNSUBSCRIBE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AD_IMPRESSION;)
+ (NSString * _Nonnull)AD_IMPRESSION SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AD_CLICK;)
+ (NSString * _Nonnull)AD_CLICK SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull COMPLETE_TUTORIAL;)
+ (NSString * _Nonnull)COMPLETE_TUTORIAL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull ACHIEVE_LEVEL;)
+ (NSString * _Nonnull)ACHIEVE_LEVEL SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull UNLOCK_ACHIEVEMENT;)
+ (NSString * _Nonnull)UNLOCK_ACHIEVEMENT SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull RATE;)
+ (NSString * _Nonnull)RATE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SHARE;)
+ (NSString * _Nonnull)SHARE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SCHEDULE;)
+ (NSString * _Nonnull)SCHEDULE SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SPEND_CREDITS;)
+ (NSString * _Nonnull)SPEND_CREDITS SWIFT_WARN_UNUSED_RESULT;
@end

/// The types of the events that are tracked by the SDK automatically.
/// Each type covers the events that are reported under the same name in Airbridge.
typedef SWIFT_ENUM(NSInteger, AirbridgeEventType, open) {
/// Indicates the event that is tracked when the app is launched for the first time
/// after the installation, whether the app is launched by a deeplink or not.
  AirbridgeEventTypeInstall = 0,
/// Indicates the event that is tracked when the app is launched or foregrounded
/// with a new session, not by a deeplink.
  AirbridgeEventTypeOpen = 1,
/// Indicates the event that is tracked when the app is launched or foregrounded
/// by a deeplink, except for the first time after the installation.
  AirbridgeEventTypeDeeplinkOpen = 2,
};

@class SKPaymentTransaction;
/// Holds components of in-app-purchase event.
SWIFT_CLASS("_TtC9Airbridge22AirbridgeInAppPurchase")
@interface AirbridgeInAppPurchase : NSObject
/// A transaction of in-app-purchase event.
@property (nonatomic, readonly, strong) SKPaymentTransaction * _Nullable transaction;
/// A additional semantic attributes of in-app-purchase event.
- (void)setSemanticAttributes:(NSDictionary<NSString *, id> * _Nonnull)attributes;
/// A additional custom attributes of in-app-purchase event.
- (void)setCustomAttributes:(NSDictionary<NSString *, id> * _Nonnull)attributes;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

/// Indicates environment of in-app-purchase.
typedef SWIFT_ENUM(NSInteger, AirbridgeInAppPurchaseEnvironment, open) {
  AirbridgeInAppPurchaseEnvironmentSandbox = 0,
  AirbridgeInAppPurchaseEnvironmentProduction = 1,
};

@class NSData;
@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Registers a push notification token.
/// \param data The push notification token,
/// typically obtained from the device’s notification service provider, such as APNs for Apple devices.
///
+ (void)registerPushToken:(NSData * _Nonnull)data;
@end

@class AirbridgeTrackingBlocklist;
@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Blocks tracking for the specified <code>AirbridgeTrackingBlocklist</code> item.
/// This function adds the given item to the current TrackingBlocklist
/// applied in the <code>AirbridgeOption</code>, disabling tracking at runtime.
/// \param item The tracking blocklist item to block.
///
+ (void)blockTrackingItem:(AirbridgeTrackingBlocklist * _Nonnull)item;
/// Allows tracking for the specified <code>AirbridgeTrackingBlocklist</code> item.
/// This function removes the given item from the current TrackingBlocklist
/// applied in the <code>AirbridgeOption</code>, enabling tracking at runtime.
/// \param item The tracking blocklist item to allow.
///
+ (void)allowTrackingItem:(AirbridgeTrackingBlocklist * _Nonnull)item;
@end

enum AirbridgeTrackingAuthorization : NSUInteger;
@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Requests App Tracking Transparency authorization.
/// \param completion A closure that receives the resulting authorization status on the main queue.
///
///
/// returns:
/// <code>true</code> if the request was accepted for processing.
/// Returns <code>false</code> if the SDK is not initialized or is disabled.
/// This value does not represent whether tracking authorization was granted or denied.
+ (BOOL)requestTrackingAuthorizationWithCompletionHandler:(void (^ _Nonnull)(enum AirbridgeTrackingAuthorization))completion;
/// Returns the current App Tracking Transparency authorization status synchronously.
///
/// returns:
/// The current status, or <code>.notDetermined</code> if the SDK is not initialized or is disabled.
/// Returns <code>.authorized</code> on systems without App Tracking Transparency support.
+ (enum AirbridgeTrackingAuthorization)trackingAuthorizationStatus SWIFT_WARN_UNUSED_RESULT;
@end

@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Sets a device alias with a specified key and value.
/// note:
/// The attribute’s key and value must satisfy the <code>conditions</code>,
/// otherwise, they will not be applied.
/// <h3>Conditions</h3>
/// <ul>
///   <li>
///     The device alias can have a maximum of 10 key-value pairs.
///   </li>
///   <li>
///     The <code>key</code> must be of type <code>String</code> and can have a maximum length of 128 characters.
///   </li>
///   <li>
///     The <code>key</code> must satisfy the regular expression <code>^[a-zA-Z_][a-zA-Z0-9_]*$</code>.
///   </li>
///   <li>
///     The <code>value</code> must be of type <code>String</code> and can have a maximum length of 128 characters.
///   </li>
/// </ul>
/// \param key The key for the device alias.
///
/// \param value The value to be assigned to the device alias.
///
+ (void)setDeviceAliasWithKey:(NSString * _Nonnull)key value:(NSString * _Nonnull)value;
/// Removes a device alias for a given key.
/// \param key The key for the device alias to be removed.
///
+ (void)removeDeviceAliasWithKey:(NSString * _Nonnull)key;
/// Clears all device aliases.
+ (void)clearDeviceAlias;
@end

@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Sets a user alias with a specified key and value.
/// note:
/// The attribute’s key and value must satisfy the <code>conditions</code>,
/// otherwise, they will not be applied.
/// <h3>Conditions</h3>
/// <ul>
///   <li>
///     The alias can have a maximum of 10 key-value pairs.
///   </li>
///   <li>
///     The key must be of type <code>String</code> and can have a maximum length of 128 characters.
///   </li>
///   <li>
///     The key must satisfy the regular expression <code>^[a-zA-Z_][a-zA-Z0-9_]*$</code>.
///   </li>
///   <li>
///     The value must be of type <code>String</code> and can have a maximum length of 1024 characters.
///   </li>
/// </ul>
/// \param key The key for the user alias.
///
/// \param value The value to be assigned to the user alias.
///
+ (void)setUserAliasWithKey:(NSString * _Nonnull)key value:(NSString * _Nonnull)value;
/// Removes a user alias for a given key.
/// \param key The key for the user alias to be removed.
///
+ (void)removeUserAliasWithKey:(NSString * _Nonnull)key;
/// Clears all user aliases.
+ (void)clearUserAlias;
@end

@class WKUserContentController;
@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Configures the web interface for a given user content controller with a web token.
/// note:
/// Upon receiving commands from the Web SDK, it’s possible to:
/// track events, modify device information, modify user information.
/// \param controller The user content controller to be configured.
///
/// \param webToken The token to be used for web interface authentication.
///
+ (void)setWebInterfaceWithController:(WKUserContentController * _Nonnull)controller webToken:(NSString * _Nonnull)webToken;
/// Creates a script that initialize the web interface to implement web interface manually.
/// warning:
/// This option is used by Airbridge SDK Developers internally.
/// Do not using this option is strongly recommended.
/// \param webToken The token to initialize Airbridge Web SDK.
///
/// \param postMessageScript The JavaScript code to post commands from web to app.
///
+ (NSString * _Nullable)createWebInterfaceScriptWithWebToken:(NSString * _Nonnull)webToken postMessageScript:(NSString * _Nonnull)postMessageScript SWIFT_WARN_UNUSED_RESULT;
/// Handles commands from the web interface to implement web interface manually.
/// warning:
/// This option is used by Airbridge SDK Developers internally.
/// Do not using this option is strongly recommended.
/// \param command The command to handle.
///
+ (void)handleWebInterfaceCommand:(NSString * _Nonnull)command;
@end

@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Sends signal to SDK to start transmiting events to server
/// and fetching deferred deeplink, attribution result from server.
/// note:
/// After SDK is initialized, developer must call <code>startTracking()</code> per open.
/// If <code>AirbridgeOptionBuilder/setAutoStartTrackingEnabled(_:)</code> is set as false.
+ (void)startTracking;
/// Sends signal to SDK to stop transmiting events to server
/// and fetching deferred deeplink, attribution result from server.
+ (void)stopTracking;
/// Indicates that SDK can transmit events to server
/// and fetch deferred deeplink, attribution result from server.
/// note:
/// If <code>isTrackingEnabled</code> is false, every collected events are discarded.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL isTrackingEnabled;)
+ (BOOL)isTrackingEnabled SWIFT_WARN_UNUSED_RESULT;
@end

@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Tracks user behavior through event tracking.
/// \param category Name of event.
///
+ (void)trackEventWithCategory:(NSString * _Nonnull)category;
/// Tracks user behavior through event tracking with attributes.
/// note:
/// Standard events can be sent using <code>AirbridgeCategory</code> and <code>AirbridgeAttribute</code>.
/// \param category Name of event.
///
/// \param semanticAttributes Additional attributes of the event that defined by Airbridge.
///
+ (void)trackEventWithCategory:(NSString * _Nonnull)category semanticAttributes:(NSDictionary<NSString *, id> * _Nonnull)semanticAttributes;
/// Tracks user behavior through event tracking with attributes.
/// note:
/// Standard events can be sent using <code>AirbridgeCategory</code> and <code>AirbridgeAttribute</code>.
/// \param category Name of event.
///
/// \param semanticAttributes Additional attributes of the event that defined by Airbridge.
///
/// \param customAttributes Additional attributes of the event.
///
+ (void)trackEventWithCategory:(NSString * _Nonnull)category semanticAttributes:(NSDictionary<NSString *, id> * _Nonnull)semanticAttributes customAttributes:(NSDictionary<NSString *, id> * _Nonnull)customAttributes;
/// Sets additional attributes of the events that are tracked by the SDK automatically.
/// note:
/// The attributes are applied when an event is created,
/// so events that are already created are not affected.
/// <h3>Behaviors</h3>
/// <ul>
///   <li>
///     The attributes replace the ones set before for the same <code>type</code>.
///   </li>
///   <li>
///     Passing <code>nil</code> or empty attributes for both parameters clears the ones set before.
///   </li>
///   <li>
///     To apply the attributes to the install event, call this method right after
///     <code>initializeSDK(option:)</code> with <code>autoStartTracking</code> disabled, then call <code>startTracking()</code>.
///   </li>
/// </ul>
/// \param type Type of the events to apply the attributes.
///
/// \param semanticAttributes Additional attributes of the events that are defined by Airbridge.
///
/// \param customAttributes Additional attributes of the events.
///
+ (void)setAdditionalEventAttributesWithType:(enum AirbridgeEventType)type semanticAttributes:(NSDictionary<NSString *, id> * _Nullable)semanticAttributes customAttributes:(NSDictionary<NSString *, id> * _Nullable)customAttributes;
@end

@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Indicates whether <code>notification</code> was sent by Airbridge to track uninstall of app.
/// \param notification The notification to check
///
+ (BOOL)isUninstallTrackingNotification:(NSDictionary * _Nonnull)notification;
/// Request the DeviceUUID and get the response.
/// note:
/// - Note: If you want to handle failure cases, call <code>fetchDeviceUUID(onSuccess:onFailure:)</code>.
/// \param onSuccess A closure to be executed when the operation is successful.
///
+ (BOOL)fetchDeviceUUIDOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess;
/// Request the DeviceUUID and get the response.
/// \param onSuccess A closure to be executed when the operation is successful.
///
/// \param onFailure A closure to be executed when the operation fails.
///
+ (BOOL)fetchDeviceUUIDOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure;
/// Request the AirbridgeGeneratedUUID and get the response.
/// \param onSuccess A closure to be executed when the operation is successful.
///
+ (BOOL)fetchAirbridgeGeneratedUUIDOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess;
/// Request the AirbridgeGeneratedUUID and get the response.
/// \param onSuccess A closure to be executed when the operation is successful.
///
/// \param onFailure A closure to be executed when the operation fails.
///
+ (BOOL)fetchAirbridgeGeneratedUUIDOnSuccess:(void (^ _Nonnull)(NSString * _Nonnull))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure;
@end

@class AirbridgeStoreInAppPurchase;
@class SKPaymentQueue;
@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Tracks an in-app-purchase event with the purchase passed from the app.
/// \param purchase The purchase to be tracked.
///
+ (void)trackStoreInAppPurchaseEvent:(AirbridgeStoreInAppPurchase * _Nonnull)purchase;
/// Tracks an in-app-purchase event with the purchase passed from the app and attributes.
/// \param purchase The purchase to be tracked.
///
/// \param semanticAttributes Additional attributes of the event that defined by Airbridge.
///
/// \param customAttributes Additional attributes of the event.
///
+ (void)trackStoreInAppPurchaseEvent:(AirbridgeStoreInAppPurchase * _Nonnull)purchase semanticAttributes:(NSDictionary<NSString *, id> * _Nullable)semanticAttributes customAttributes:(NSDictionary<NSString *, id> * _Nullable)customAttributes;
/// Starts tracking event automatically for each user
/// purchases product through in-app-purchase.
+ (void)startInAppPurchaseTracking SWIFT_AVAILABILITY(ios,deprecated=100000,message="Will be deprecated in a future release. Use trackStoreInAppPurchaseEvent(_:) instead.");
/// Starts tracking event automatically for each user
/// purchases product through in-app-purchase.
/// \param queue The Queue to be tracked.
///
+ (void)startInAppPurchaseTracking:(SKPaymentQueue * _Nonnull)queue SWIFT_AVAILABILITY(ios,deprecated=100000,message="Will be deprecated in a future release. Use trackStoreInAppPurchaseEvent(_:) instead.");
/// Stops tracking event automatically for each user
/// purchases product through in-app-purchase.
+ (void)stopInAppPurchaseTracking;
/// Indicates that SDK can track event automatically for each user
/// purchases product through in-app-purchase.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly) BOOL isInAppPurchaseTrackingEnabled;)
+ (BOOL)isInAppPurchaseTrackingEnabled SWIFT_WARN_UNUSED_RESULT;
@end

@class NSURL;
@class AirbridgeTrackingLink;
@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Adds an impression event for the tracking link.
/// note:
/// Impression event doesn’t make any movement events.
/// \param trackingLink The URL to be tracked for impressions.
///
+ (BOOL)impressionWithTrackingLink:(NSURL * _Nonnull)trackingLink;
/// Adds an impression event for the tracking link.
/// note:
/// Impression event doesn’t make any movement events.
/// \param trackingLink The URL to be tracked for impressions.
///
/// \param onSuccess A closure to be executed when the operation is successful.
///
+ (BOOL)impressionWithTrackingLink:(NSURL * _Nonnull)trackingLink onSuccess:(void (^ _Nonnull)(void))onSuccess;
/// Adds an impression event for the tracking link.
/// note:
/// Impression event doesn’t make any movement events.
/// \param trackingLink The URL to be tracked for impressions.
///
/// \param onSuccess A closure to be executed when the operation is successful.
///
/// \param onFailure A closure to be executed when the operation fails.
///
+ (BOOL)impressionWithTrackingLink:(NSURL * _Nonnull)trackingLink onSuccess:(void (^ _Nonnull)(void))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure;
/// Queries the tracking link to the server to get the deeplink information
/// and then moves according to that information if a deeplink is set up.
/// It also adds a click event for the tracking link.
/// \param trackingLink The URL to be queried for deeplink information and tracked for clicks.
///
+ (BOOL)clickWithTrackingLink:(NSURL * _Nonnull)trackingLink;
/// Queries the tracking link to the server to get the deeplink information
/// and then moves according to that information if a deeplink is set up.
/// It also adds a click event for the tracking link.
/// \param trackingLink The URL to be queried for deeplink information and tracked for clicks.
///
/// \param onSuccess A closure to be executed when the operation is successful.
///
+ (BOOL)clickWithTrackingLink:(NSURL * _Nonnull)trackingLink onSuccess:(void (^ _Nonnull)(void))onSuccess;
/// Queries the tracking link to the server to get the deeplink information
/// and then moves according to that information if a deeplink is set up.
/// It also adds a click event for the tracking link.
/// \param trackingLink The URL to be queried for deeplink information and tracked for clicks.
///
/// \param onSuccess A closure to be executed when the operation is successful.
///
/// \param onFailure A closure to be executed when the operation fails.
///
+ (BOOL)clickWithTrackingLink:(NSURL * _Nonnull)trackingLink onSuccess:(void (^ _Nonnull)(void))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure;
/// Creates a tracking-link using airbridge-server that move user
/// to specific page of app and track click-event.
/// \param channel The channel of tracking-link
///
/// \param option The option to create tracking-link
///
/// \param onSuccess Created tracking-link is delivered if succeed.
///
+ (void)createTrackingLinkWithChannel:(NSString * _Nonnull)channel option:(NSDictionary<NSString *, id> * _Nonnull)option onSuccess:(void (^ _Nonnull)(AirbridgeTrackingLink * _Nonnull))onSuccess;
/// Creates a tracking-link using airbridge-server that move user
/// to specific page of app and track click-event.
/// \param channel The channel of tracking-link
///
/// \param option The option to create tracking-link
///
/// \param onSuccess Created tracking-link is delivered if succeed.
///
/// \param onFailure Error is delivered if failed.
///
+ (void)createTrackingLinkWithChannel:(NSString * _Nonnull)channel option:(NSDictionary<NSString *, id> * _Nonnull)option onSuccess:(void (^ _Nonnull)(AirbridgeTrackingLink * _Nonnull))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure;
@end

@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Sets the user ID for Airbridge.
/// \param id The unique identifier for the user.
///
+ (void)setUserID:(NSString * _Nonnull)id;
/// Clears user userID for Airbridge.
+ (void)clearUserID;
/// Sets the user email for Airbridge.
/// \param email The email address of the user.
///
+ (void)setUserEmail:(NSString * _Nonnull)email;
/// Clears user userEmail for Airbridge.
+ (void)clearUserEmail;
/// Sets the user phone number for Airbridge.
/// \param number The phone number of the user.
///
+ (void)setUserPhone:(NSString * _Nonnull)number;
/// Clears user userPhone for Airbridge.
+ (void)clearUserPhone;
/// Sets a user attribute with a specified key and value for Airbridge.
/// note:
/// The attribute’s key and value must satisfy the <code>conditions</code>,
/// otherwise, they will not be applied.
/// <h3>Conditions</h3>
/// <ul>
///   <li>
///     The <code>attributes</code> can have a maximum of 100 key-value pairs.
///   </li>
///   <li>
///     The <code>key</code> must be a <code>String</code> type and can have a maximum length of 128 characters.
///   </li>
///   <li>
///     The <code>key</code> must satisfy the regular expression <code>^[a-zA-Z_][a-zA-Z0-9_]*$</code>.
///   </li>
///   <li>
///     The <code>value</code> must be of <code>String</code> or <code>Numeric</code> or <code>Boolean</code> type.
///   </li>
///   <li>
///     If <code>value</code> is a <code>String</code> type, it can have a maximum length of 1024 characters.
///   </li>
/// </ul>
/// \param key The key for the user attribute.
///
/// \param value The value to be assigned to the user attribute.
///
+ (void)setUserAttributeWithKey:(NSString * _Nonnull)key value:(id _Nonnull)value;
/// Removes a user attribute for a given key for Airbridge.
/// \param key The key for the user attribute to be removed.
///
+ (void)removeUserAttributeWithKey:(NSString * _Nonnull)key;
/// Clears all user attributes for Airbridge.
+ (void)clearUserAttributes;
/// Clears all user data.
+ (void)clearUser;
@end

@class NSUserActivity;
@class UISceneConnectionOptions;
@class UIOpenURLContext;
@interface AirbridgeInterface (SWIFT_EXTENSION(Airbridge))
/// Tracks app behavior through deeplink.
/// note:
/// Whenever <code>application:openURL:options:</code> is called,
/// developer must also call this method.
/// \param url URL of deeplink (Scheme Deeplink).
///
+ (void)trackDeeplinkWithUrl:(NSURL * _Nonnull)url;
/// Handles airbridge-deeplink.
/// note:
/// Airbridge-deeplink, which enhances the user experience
/// by wrapping advertiser-deeplink in various URL forms, should be resolved
/// to advertiser-deeplink using <code>handleDeeplink</code>.
/// \param url URL of deeplink (Scheme Deeplink).
///
/// \param onSuccess URL of resolved advertiser-deeplink is delivered.
///
///
/// returns:
/// <code>true</code> if <code>url</code> is airbridge-deeplink, <code>false</code> if else.
+ (BOOL)handleDeeplinkWithUrl:(NSURL * _Nonnull)url onSuccess:(void (^ _Nonnull)(NSURL * _Nonnull))onSuccess;
/// Handles airbridge-deeplink.
/// note:
/// Airbridge-deeplink wraps advertiser-deeplink with various forms of URL to optimize UX of deeplink.
/// For this reason, airbridge-deeplink should be resolved by <code>handleDeeplink</code> to advertiser-deeplink.
/// \param url URL of deeplink (Scheme Deeplink).
///
/// \param onSuccess URL of resolved advertiser-deeplink is delivered.
///
/// \param onFailure Error is delivered if failed on handling.
///
///
/// returns:
/// true if <code>url</code> is airbridge-deeplink, false if else.
+ (BOOL)handleDeeplinkWithUrl:(NSURL * _Nonnull)url onSuccess:(void (^ _Nonnull)(NSURL * _Nonnull))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure;
/// Tracks app behavior through deeplink.
/// note:
/// Per every <code>application:continueUserActivity:restorationHandler:</code> call,
/// developer must call <code>trackDeeplink</code>.
/// \param userActivity UserActivity of deeplink (Universal Links).
///
+ (void)trackDeeplinkWithUserActivity:(NSUserActivity * _Nonnull)userActivity;
/// Handles airbridge-deeplink.
/// note:
/// Airbridge-deeplink wraps advertiser-deeplink with various forms of URL to optimize UX of deeplink.
/// For this reason, airbridge-deeplink should be resolved by <code>handleDeeplink</code> to advertiser-deeplink.
/// \param userActivity UserActivity of deeplink (Universal Links).
///
/// \param onSuccess URL of resolved advertiser-deeplink is delivered.
///
///
/// returns:
/// true if url of <code>userActivity</code> is airbridge-deeplink, false if else.
+ (BOOL)handleDeeplinkWithUserActivity:(NSUserActivity * _Nonnull)userActivity onSuccess:(void (^ _Nonnull)(NSURL * _Nonnull))onSuccess;
/// Handles airbridge-deeplink.
/// note:
/// Airbridge-deeplink wraps advertiser-deeplink with various forms of URL to optimize UX of deeplink.
/// For this reason, airbridge-deeplink should be resolved by <code>handleDeeplink</code> to advertiser-deeplink.
/// \param userActivity UserActivity of deeplink (Universal Links).
///
/// \param onSuccess URL of resolved advertiser-deeplink is delivered.
///
/// \param onFailure Error is delivered if failed on handling.
///
///
/// returns:
/// true if url of <code>userActivity</code> is airbridge-deeplink, false if else.
+ (BOOL)handleDeeplinkWithUserActivity:(NSUserActivity * _Nonnull)userActivity onSuccess:(void (^ _Nonnull)(NSURL * _Nonnull))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure;
/// Tracks app behavior through deeplink from scene connection options during app launch or scene activation.
/// note:
/// Per every scene connection with deeplink URLs, developer must call <code>trackDeeplink</code> to
/// properly track user behavior.
/// <ul>
///   <li>
///     Availability: iOS 13.0+ (UIScene-based lifecycle)
///   </li>
/// </ul>
/// \param connectionOptions Connection options containing URL contexts and
/// other launch information for deeplink tracking.
///
+ (void)trackDeeplinkWithConnectionOptions:(UISceneConnectionOptions * _Nonnull)connectionOptions SWIFT_AVAILABILITY(ios,introduced=13.0);
/// Handles airbridge-deeplink from scene connection options during app launch or scene activation.
/// note:
/// Airbridge-deeplink wraps advertiser-deeplink with various forms of URL to optimize UX of deeplink.
/// For this reason, airbridge-deeplink should be resolved by <code>handleDeeplink</code> to advertiser-deeplink.
/// <ul>
///   <li>
///     Availability: iOS 13.0+ (UIScene-based lifecycle)
///   </li>
/// </ul>
/// \param connectionOptions Connection options containing URL contexts
/// and other launch information for deeplink handling.
///
/// \param onSuccess Callback invoked when airbridge-deeplink is successfully resolved to advertiser-deeplink.
/// The resolved URL is delivered as parameter.
///
///
/// returns:
/// <code>true</code> if URL from connection options is airbridge-deeplink and
/// handled successfully, <code>false</code> otherwise.
+ (BOOL)handleDeeplinkWithConnectionOptions:(UISceneConnectionOptions * _Nonnull)connectionOptions onSuccess:(void (^ _Nonnull)(NSURL * _Nonnull))onSuccess SWIFT_AVAILABILITY(ios,introduced=13.0);
/// Handles airbridge-deeplink from scene connection options during app launch or scene activation.
/// note:
/// Airbridge-deeplink wraps advertiser-deeplink with various forms of URL to optimize UX of deeplink.
/// For this reason, airbridge-deeplink should be resolved by <code>handleDeeplink</code> to advertiser-deeplink.
/// <ul>
///   <li>
///     Availability: iOS 13.0+ (UIScene-based lifecycle)
///   </li>
/// </ul>
/// \param connectionOptions Connection options containing URL contexts
/// and other launch information for deeplink handling.
///
/// \param onSuccess Callback invoked when airbridge-deeplink is successfully resolved to advertiser-deeplink.
/// The resolved URL is delivered as parameter.
///
/// \param onFailure Callback invoked when deeplink handling fails. The error is delivered as parameter.
///
///
/// returns:
/// <code>true</code> if URL from connection options is airbridge-deeplink and
/// handled successfully, <code>false</code> otherwise.
+ (BOOL)handleDeeplinkWithConnectionOptions:(UISceneConnectionOptions * _Nonnull)connectionOptions onSuccess:(void (^ _Nonnull)(NSURL * _Nonnull))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure SWIFT_AVAILABILITY(ios,introduced=13.0);
/// Tracks app behavior through deeplink from URL contexts when app is already running.
/// note:
/// Per every <code>scene:openURLContexts:</code> call, developer must call <code>trackDeeplink</code> to
/// properly track user behavior.
/// <ul>
///   <li>
///     Availability: iOS 13.0+ (UIScene-based lifecycle)
///   </li>
/// </ul>
/// \param openURLContexts Set of URL contexts containing deeplink URLs to be tracked.
///
+ (void)trackDeeplinkWithOpenURLContexts:(NSSet<UIOpenURLContext *> * _Nonnull)openURLContexts SWIFT_AVAILABILITY(ios,introduced=13.0);
/// Handles airbridge-deeplink from URL contexts when app is already running.
/// note:
/// Airbridge-deeplink wraps advertiser-deeplink with various forms of URL to optimize UX of deeplink.
/// For this reason, airbridge-deeplink should be resolved by <code>handleDeeplink</code> to advertiser-deeplink.
/// <ul>
///   <li>
///     Availability: iOS 13.0+ (UIScene-based lifecycle)
///   </li>
/// </ul>
/// \param openURLContexts Set of URL contexts containing deeplink URLs to be processed.
///
/// \param onSuccess Callback invoked when airbridge-deeplink is successfully resolved to advertiser-deeplink.
/// The resolved URL is delivered as parameter.
///
///
/// returns:
/// <code>true</code> if any URL from contexts is airbridge-deeplink and handled successfully, <code>false</code> otherwise.
+ (BOOL)handleDeeplinkWithOpenURLContexts:(NSSet<UIOpenURLContext *> * _Nonnull)openURLContexts onSuccess:(void (^ _Nonnull)(NSURL * _Nonnull))onSuccess SWIFT_AVAILABILITY(ios,introduced=13.0);
/// Handles airbridge-deeplink from URL contexts when app is already running.
/// note:
/// Airbridge-deeplink wraps advertiser-deeplink with various forms of URL to optimize UX of deeplink.
/// For this reason, airbridge-deeplink should be resolved by <code>handleDeeplink</code> to advertiser-deeplink.
/// <ul>
///   <li>
///     Availability: iOS 13.0+ (UIScene-based lifecycle)
///   </li>
/// </ul>
/// \param openURLContexts Set of URL contexts containing deeplink URLs to be processed.
///
/// \param onSuccess Callback invoked when airbridge-deeplink is successfully resolved to advertiser-deeplink.
/// The resolved URL is delivered as parameter.
///
/// \param onFailure Callback invoked when deeplink handling fails. The error is delivered as parameter.
///
///
/// returns:
/// <code>true</code> if any URL from contexts is airbridge-deeplink and handled successfully, <code>false</code> otherwise.
+ (BOOL)handleDeeplinkWithOpenURLContexts:(NSSet<UIOpenURLContext *> * _Nonnull)openURLContexts onSuccess:(void (^ _Nonnull)(NSURL * _Nonnull))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure SWIFT_AVAILABILITY(ios,introduced=13.0);
/// Handles airbridge-deferred-deeplink.
/// note:
/// Airbridge-deferred-deeplink is fetched when <code>startTracking</code> is called firstly.
/// And it is delivered to <code>onSuccess</code> of <code>handleDeferredDeeplink</code>.
/// note:
/// Airbridge-deferred-deeplink wraps advertiser-deeplink with various forms of URL
/// to optimize UX of deeplink. For this reason, airbridge-deferred-deeplink should be resolved
/// by <code>handleDeferredDeeplink</code> to advertiser-deeplink.
/// \param onSuccess URL of resolved advertiser-deeplink is delivered.
///
///
/// returns:
/// true if order of call is first for installation, false if else.
+ (BOOL)handleDeferredDeeplinkOnSuccess:(void (^ _Nonnull)(NSURL * _Nullable))onSuccess;
/// Handle deferred deep link across multiple Airbridge instances and invoke a callback based on the result.
/// Collects deferred deep link data from all provided Airbridge instances, selects the one with
/// the highest priority, and delivers it to the corresponding instance’s callback.
/// @param apps List of Airbridge instances to collect deferred deep link data from.
/// @param onSuccess Callback to be invoked when getting the deferred deep link data is successfully handled.
/// @return <code>true</code> if all of the following conditions are met:
/// <ul>
///   <li>
///     If the SDK is initialized and enabled.
///   </li>
///   <li>
///     If no value has been passed to the callback since the app was installed.
///   </li>
///   <li>
///     If this function was not called at least once for this app opening.
///   </li>
/// </ul>
/// <code>false</code> otherwise.
+ (BOOL)handleDeferredDeeplinkWithApps:(NSArray<SWIFT_METATYPE(AirbridgeInterface)> * _Nonnull)apps onSuccess:(void (^ _Nonnull)(NSURL * _Nullable))onSuccess;
/// Handles airbridge-deferred-deeplink.
/// note:
/// Airbridge-deferred-deeplink is fetched when <code>startTracking</code> is called firstly.
/// And it is delivered to <code>onSuccess</code> of <code>handleDeferredDeeplink</code>.
/// note:
/// Airbridge-deferred-deeplink wraps advertiser-deeplink with various forms of URL
/// to optimize UX of deeplink. For this reason, airbridge-deferred-deeplink should be resolved
/// by <code>handleDeferredDeeplink</code> to advertiser-deeplink.
/// \param onSuccess URL of resolved advertiser-deeplink is delivered.
///
/// \param onFailure Error is delivered if failed on handling.
///
///
/// returns:
/// true if order of call is first for installation, false if else.
+ (BOOL)handleDeferredDeeplinkOnSuccess:(void (^ _Nonnull)(NSURL * _Nullable))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure;
/// Handle deferred deep link across multiple Airbridge instances and invoke a callback based on the result.
/// Collects deferred deep link data from all provided Airbridge instances, selects the one with
/// the highest priority, and delivers it to the corresponding instance’s callback.
/// @param apps List of Airbridge instances to collect deferred deep link data from.
/// @param onSuccess Callback to be invoked when getting the deferred deep link data is successfully handled.
/// @param onFailure Callback to be invoked if getting the deferred deep link data fails.
/// @return <code>true</code> if all of the following conditions are met:
/// <ul>
///   <li>
///     If the SDK is initialized and enabled.
///   </li>
///   <li>
///     If no value has been passed to the callback since the app was installed.
///   </li>
///   <li>
///     If this function was not called at least once for this app opening.
///   </li>
/// </ul>
/// <code>false</code> otherwise.
+ (BOOL)handleDeferredDeeplinkWithApps:(NSArray<SWIFT_METATYPE(AirbridgeInterface)> * _Nonnull)apps onSuccess:(void (^ _Nonnull)(NSURL * _Nullable))onSuccess onFailure:(void (^ _Nonnull)(NSError * _Nonnull))onFailure;
@end

/// Indicates allowance scope of log printing.
typedef SWIFT_ENUM(NSInteger, AirbridgeLogLevel, open) {
/// Indicates logs about detailed internal behavior.
  AirbridgeLogLevelDebug = 0,
/// Indicates logs about brief internal behavior.
  AirbridgeLogLevelInfo = 1,
/// Indicates logs about incorrect usages.
  AirbridgeLogLevelWarning = 2,
/// Indicates logs about catched errors.
  AirbridgeLogLevelError = 3,
/// Indicates logs about uncatched errors.
  AirbridgeLogLevelFault = 4,
};

/// Holds every options of SDK.
/// note:
/// Only <code>AirbridgeOptionBuilder</code> can allocate <code>AirbridgeOption</code>.
SWIFT_CLASS("_TtC9Airbridge15AirbridgeOption")
@interface AirbridgeOption : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

/// Receives options and allocate <code>AirbridgeOption</code>.
/// note:
/// Every option’s setters are chainable.
/// \code
/// let option = AirbridgeOptionBuilder(name: "...", token: "...")
///     .setLogLevel(.debug)
///     .setSDKEnabled(true)
///     .build()
///
/// \endcode
SWIFT_CLASS("_TtC9Airbridge22AirbridgeOptionBuilder")
@interface AirbridgeOptionBuilder : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Indicates that the SDK hashes the user’s email and phone using SHA-256 before sending to the server.
- (AirbridgeOptionBuilder * _Nonnull)setHashUserInformationEnabled:(BOOL)isHashUserInformationEnabled;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Indicates that every logs having higher and equal level is printed with <code>os_log</code>.
/// note:
/// Default value is <code>.warning</code>.
- (AirbridgeOptionBuilder * _Nonnull)setLogLevel:(enum AirbridgeLogLevel)logLevel;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Indicates that the log subsystem and category prefix is printed in the log message body.
/// note:
/// Default value is <code>false</code>.
- (AirbridgeOptionBuilder * _Nonnull)setLogSubsystemPrintedInBodyEnabled:(BOOL)enabled;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Indicates that every logs are paginated to 900 characters to satisfy <code>os_log</code>’s 1024 characters limit.
/// note:
/// Default value is <code>false</code>.
/// note:
/// <code>os_log</code>’s 1024 characters limit may be applied when retrive logs from tool that not xcode.
- (AirbridgeOptionBuilder * _Nonnull)setPaginateLogEnabled:(BOOL)enabled;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Indicates that <code>Airbridge/initializeSDK(option:)</code>
/// must call <code>Airbridge/enableSDK()</code> automatically.
/// note:
/// Default value is <code>true</code>.
- (AirbridgeOptionBuilder * _Nonnull)setSDKEnabled:(BOOL)isSDKEnabled;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Allocates <code>AirbridgeOptionBuilder</code>.
/// \param name Name of Airbridge app that set on dashboard.
///
/// \param token App token of Airbridge app that displayed on dashboard.
///
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name token:(NSString * _Nonnull)token;
/// Allocates <code>AirbridgeOption</code> with received options.
- (AirbridgeOption * _Nonnull)build SWIFT_WARN_UNUSED_RESULT;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Indicates environment to be tracked of in-app-purchase.
- (nonnull instancetype)setInAppPurchaseEnvironment:(enum AirbridgeInAppPurchaseEnvironment)environment;
/// Receives the in-app-purchase event and then handle or customize.
- (nonnull instancetype)setOnInAppPurchaseReceived:(void (^ _Nonnull)(AirbridgeInAppPurchase * _Nonnull))onReceived;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Queries the attribution information to the server to get and then handle.
/// \param onReceived A closure to be executed when the attribution is fetched.
///
- (nonnull instancetype)setOnAttributionReceived:(void (^ _Nonnull)(NSDictionary<NSString *, NSString *> * _Nonnull))onReceived;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Enables or disables the collection of lifecycle events <code>ORGANIC_REOPEN</code>, <code>FOREGROUND</code>
/// within the session timeframe (default value is <code>false</code>).
/// warning:
/// This function is no longer effective.
/// Events within the session timeframe are no longer collected regardless of this setting.
/// \param enabled <code>true</code> to enable, <code>false</code> to disable.
///
///
/// returns:
/// The <code>AirbridgeOptionBuilder</code> instance for method chaining.
- (nonnull instancetype)setTrackInSessionLifecycleEventEnabled:(BOOL)enabled SWIFT_DEPRECATED_MSG("\n        This function is no longer effective.         Events within the session timeframe are no longer collected regardless of this setting.\n    ");
/// Indicates that the SDK tracks a deeplink event only when the URL is an Airbridge deeplink.
/// If it is not, tracks it as an open event.
- (nonnull instancetype)setTrackAirbridgeDeeplinkOnlyEnabled:(BOOL)enabled;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Sets the session timeout duration.
/// note:
/// <code>second</code> must be in <code>0 second ~ 7 day</code> range.
/// Lower <code>second</code> is set as 0 second and higher <code>second</code> is set as 7 day.
/// note:
/// Use this method to define the duration of inactivity that will be considered a session timeout.
/// When a session times out, any further user activity will be considered a new session.
/// \param second The session timeout duration in seconds.
///
- (AirbridgeOptionBuilder * _Nonnull)setSessionTimeoutWithSecond:(double)second;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Sets whether SKAdNetwork CV calculation should be performed on the server.
/// \param enabled true for server calculation, false for local calculation (default)
///
- (AirbridgeOptionBuilder * _Nonnull)setCalculateSKAdNetworkByServerEnabled:(BOOL)enabled;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Add domains used by the SDK to identify tracking links.
- (AirbridgeOptionBuilder * _Nonnull)setTrackingLinkCustomDomains:(NSArray<NSString *> * _Nonnull)domains;
/// Indicates SDK tracking Meta’s deferred-app-link when app is opened firstly.
/// warning:
/// If Meta SDK is not installed on app, SDK can not track Meta’s deferred-app-link.
- (AirbridgeOptionBuilder * _Nonnull)setTrackMetaDeferredAppLinkEnabled:(BOOL)enabled;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Indicates that <code>Airbridge/startTracking()</code> is called automatically after SDK is enabled.
- (AirbridgeOptionBuilder * _Nonnull)setAutoStartTrackingEnabled:(BOOL)isAutoStartTrackingEnabled;
/// Indicates that if trackingAuthorization is not determined for timeout after SDK is enabled,
/// SDK treats trackingAuthorization as being determined automatically even if it is not determined.
/// note:
/// <code>second</code> must be in <code>0 second ~ 1 hour</code> range.
/// Lower <code>second</code> is set as 0 second and higher <code>second</code> is set as 1 hour.
- (AirbridgeOptionBuilder * _Nonnull)setAutoDetermineTrackingAuthorizationTimeoutWithSecond:(double)second;
/// Enables or disables the collection of TCF(Transparency & Consent Framework) data. (default value is <code>false</code>).
- (AirbridgeOptionBuilder * _Nonnull)setCollectTCFDataEnabled:(BOOL)isCollectTCFDataEnabled;
/// Sets the blocklist for tracking data collection.
/// The specified identifiers will not be automatically collected by the SDK,
/// which may impact advertising tracking and analytics data.
/// \param trackingBlocklist Array of tracking data types to block
///
///
/// returns:
/// The updated AirbridgeOptionBuilder instance
- (AirbridgeOptionBuilder * _Nonnull)setTrackingBlocklist:(NSArray<AirbridgeTrackingBlocklist *> * _Nonnull)trackingBlocklist;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Indicates SDK running with <code>Airbridge Multiplatform SDK</code> or <code>Airbridge Game SDK</code> or not.
/// note:
/// Default value is <code>native</code>.
/// warning:
/// This option is used by Airbridge SDK Developers internally.
/// Do not using this option is strongly recommended.
- (AirbridgeOptionBuilder * _Nonnull)setSDKDevelopmentPlatform:(NSString * _Nonnull)sdkDevelopmentPlatform;
/// Indicates SDK saving every data to directory of app group.
/// warning:
/// After starting to use the option, stopping the option
/// or changing <code>appGroup</code> will lead to the loss of every SDK-related data.
/// This data loss may also cause duplicate install events to be sent.
- (AirbridgeOptionBuilder * _Nonnull)setAppGroup:(NSString * _Nonnull)appGroup;
/// Indicates additional SDK attributes of Airbridge.
/// warning:
/// This option is used by Airbridge SDK Developers internally.
/// Do not using this option is strongly recommended.
/// \param sdkAttributes The additional sdk attributes.
///
- (AirbridgeOptionBuilder * _Nonnull)setSDKAttributes:(NSDictionary<NSString *, NSString *> * _Nonnull)sdkAttributes;
/// Indicates additional SDK wrapper option of Airbridge.
/// warning:
/// This option is used by Airbridge SDK Developers internally.
/// Do not using this option is strongly recommended.
/// \param sdkWrapperOption The additional sdk wrapper option.
///
- (AirbridgeOptionBuilder * _Nonnull)setSDKWrapperOption:(NSDictionary<NSString *, id> * _Nonnull)sdkWrapperOption;
/// Sets a internal option of Airbridge.
/// warning:
/// Do not use this option without concrete reason.
/// For example, use this option when the Airbridge CSM instructs.
- (AirbridgeOptionBuilder * _Nonnull)setInternalOptionWithKey:(NSString * _Nonnull)key value:(id _Nonnull)value;
@end

@interface AirbridgeOptionBuilder (SWIFT_EXTENSION(Airbridge))
/// Create unique signatures with id and secret, and sign events with each different signature to prevent fraud.
/// note:
/// The signature id and secret must satisfy the <code>conditions</code>, otherwise, they will not be applied.
/// <h3>Conditions</h3>
/// <ul>
///   <li>
///     The <code>id</code> must be a UUID <code>String</code> type
///   </li>
///   <li>
///     The <code>secret</code> must be a <code>String</code> type and satisfy the regex format(^[a-zA-Z0-9]{64}).
///   </li>
/// </ul>
/// \param id The identifier for creating a signature.
///
/// \param secret The secret string for creating a signature.
///
- (AirbridgeOptionBuilder * _Nonnull)setSDKSignatureWithId:(NSString * _Nonnull)id secret:(NSString * _Nonnull)secret;
/// Indicates to clear the event storage when initializing the SDK.
- (AirbridgeOptionBuilder * _Nonnull)setClearEventBufferOnInitializeEnabled:(BOOL)enabled;
/// Indicates SDK pauses transmiting events on background.
- (AirbridgeOptionBuilder * _Nonnull)setPauseEventTransmitOnBackgroundEnabled:(BOOL)enabled;
/// Indicates the maximum count of events.
- (AirbridgeOptionBuilder * _Nonnull)setEventBufferCountLimit:(NSInteger)count;
/// Indicates the maximum size of events.
/// note:
/// <code>gibibyte</code> must be in <code>0 byte ~ 1 tebibyte</code> range.
/// Lower <code>gibibyte</code> is set as 0 byte and higher <code>gibibyte</code> is set as 1 tebibyte.
- (AirbridgeOptionBuilder * _Nonnull)setEventBufferSizeLimitWithGibibyte:(double)gibibyte;
/// Indicates the interval between every event transmitions.
/// note:
/// <code>second</code> must be in <code>0 hour ~ 1 day</code> range.
/// Lower <code>second</code> is set as 0 second and higher <code>second</code> is set as 1 day.
- (AirbridgeOptionBuilder * _Nonnull)setEventTransmitIntervalWithSecond:(double)second;
@end

/// Holds a purchase passed from the app to track an in-app-purchase event.
SWIFT_CLASS("_TtC9Airbridge27AirbridgeStoreInAppPurchase")
@interface AirbridgeStoreInAppPurchase : NSObject
/// Creates a purchase from a StoreKit 1 transaction.
/// note:
/// Only a transaction in <code>purchased</code> state is tracked.
/// \param transaction The transaction received from <code>SKPaymentTransactionObserver</code>.
///
- (nonnull instancetype)initWithTransaction:(SKPaymentTransaction * _Nonnull)transaction;
/// Creates a purchase from a dictionary.
/// \param object The purchase information which is sent as it is.
///
- (nonnull instancetype)initWithObject:(NSDictionary<NSString *, id> * _Nonnull)object;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

typedef SWIFT_ENUM(NSUInteger, AirbridgeTrackingAuthorization, open) {
  AirbridgeTrackingAuthorizationNotDetermined = 0,
  AirbridgeTrackingAuthorizationRestricted = 1,
  AirbridgeTrackingAuthorizationDenied = 2,
  AirbridgeTrackingAuthorizationAuthorized = 3,
};

/// Tracking data types to block from collection
/// note:
/// When skAdNetwork is contained in blocklist,
/// SKAdNetwork values will not be updated even though calculations are performed.
SWIFT_CLASS("_TtC9Airbridge26AirbridgeTrackingBlocklist")
@interface AirbridgeTrackingBlocklist : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AirbridgeTrackingBlocklist * _Nonnull idfa;)
+ (AirbridgeTrackingBlocklist * _Nonnull)idfa SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AirbridgeTrackingBlocklist * _Nonnull idfv;)
+ (AirbridgeTrackingBlocklist * _Nonnull)idfv SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) AirbridgeTrackingBlocklist * _Nonnull skAdNetwork;)
+ (AirbridgeTrackingBlocklist * _Nonnull)skAdNetwork SWIFT_WARN_UNUSED_RESULT;
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

/// Holds variable types of tracking-link that move user
/// to specific page of app and track click-event.
SWIFT_CLASS("_TtC9Airbridge21AirbridgeTrackingLink")
@interface AirbridgeTrackingLink : NSObject
/// A tracking-link url contains short mapping-id of option
@property (nonatomic, readonly, copy) NSURL * _Nonnull shortURL;
/// A qrcode image-url of tracking-link
@property (nonatomic, readonly, copy) NSURL * _Nonnull qrcodeURL;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

SWIFT_CLASS("_TtC9Airbridge27AirbridgeTrackingLinkOption")
@interface AirbridgeTrackingLinkOption : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@interface AirbridgeTrackingLinkOption (SWIFT_EXTENSION(Airbridge))
/// A campaign parameter. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull CAMPAIGN;)
+ (NSString * _Nonnull)CAMPAIGN SWIFT_WARN_UNUSED_RESULT;
/// A campaign parameter. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AD_GROUP;)
+ (NSString * _Nonnull)AD_GROUP SWIFT_WARN_UNUSED_RESULT;
/// A campaign parameter. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull AD_CREATIVE;)
+ (NSString * _Nonnull)AD_CREATIVE SWIFT_WARN_UNUSED_RESULT;
/// A campaign parameter. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull CONTENT;)
+ (NSString * _Nonnull)CONTENT SWIFT_WARN_UNUSED_RESULT;
/// A campaign parameter. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull TERM;)
+ (NSString * _Nonnull)TERM SWIFT_WARN_UNUSED_RESULT;
/// A campaign parameter. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SUB_ID;)
+ (NSString * _Nonnull)SUB_ID SWIFT_WARN_UNUSED_RESULT;
/// A campaign parameter. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SUB_ID_1;)
+ (NSString * _Nonnull)SUB_ID_1 SWIFT_WARN_UNUSED_RESULT;
/// A campaign parameter. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SUB_ID_2;)
+ (NSString * _Nonnull)SUB_ID_2 SWIFT_WARN_UNUSED_RESULT;
/// A campaign parameter. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull SUB_ID_3;)
+ (NSString * _Nonnull)SUB_ID_3 SWIFT_WARN_UNUSED_RESULT;
/// A url of deeplink open the app. (Custom Scheme URL String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull DEEPLINK_URL;)
+ (NSString * _Nonnull)DEEPLINK_URL SWIFT_WARN_UNUSED_RESULT;
/// A option enable stop-over-feature of deeplink. (Boolean)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull DEEPLINK_STOPOVER;)
+ (NSString * _Nonnull)DEEPLINK_STOPOVER SWIFT_WARN_UNUSED_RESULT;
/// A url of fallback for ios if app is not installed. (“store” | Web URL String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull FALLBACK_IOS;)
+ (NSString * _Nonnull)FALLBACK_IOS SWIFT_WARN_UNUSED_RESULT;
/// A url of fallback for android if app is not installed. (“store” | Web URL String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull FALLBACK_ANDROID;)
+ (NSString * _Nonnull)FALLBACK_ANDROID SWIFT_WARN_UNUSED_RESULT;
/// A url of fallback for desktop if app is not installed. (Web URL String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull FALLBACK_DESKTOP;)
+ (NSString * _Nonnull)FALLBACK_DESKTOP SWIFT_WARN_UNUSED_RESULT;
/// A custom id of store for ios used when user move to store. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull FALLBACK_IOS_STORE_PPID;)
+ (NSString * _Nonnull)FALLBACK_IOS_STORE_PPID SWIFT_WARN_UNUSED_RESULT;
/// A custom id of store for android used when user move to store. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull FALLBACK_ANDROID_STORE_LISTING;)
+ (NSString * _Nonnull)FALLBACK_ANDROID_STORE_LISTING SWIFT_WARN_UNUSED_RESULT;
/// A title of link-preview. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull OGTAG_TITLE;)
+ (NSString * _Nonnull)OGTAG_TITLE SWIFT_WARN_UNUSED_RESULT;
/// A description of link-preview. (String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull OGTAG_DESCRIPTION;)
+ (NSString * _Nonnull)OGTAG_DESCRIPTION SWIFT_WARN_UNUSED_RESULT;
/// A image-url of link-preview. (Web URL String)
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull OGTAG_IMAGE_URL;)
+ (NSString * _Nonnull)OGTAG_IMAGE_URL SWIFT_WARN_UNUSED_RESULT;
/// A customization of link-preview. (“desktop”)
/// note:
/// Airbridge crawl og-tag from response of FALLBACK_DESKTOP.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull OGTAG_WEBSITE_CRAWL;)
+ (NSString * _Nonnull)OGTAG_WEBSITE_CRAWL SWIFT_WARN_UNUSED_RESULT;
/// A custom-short-id of tracking-link. (String)
/// warning:
/// Must be used with CUSTOM_DOMAIN option.
/// note:
/// Refer example. <a href="https://app.example.com/invite">https://app.example.com/invite</a>
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull CUSTOM_SHORT_ID;)
+ (NSString * _Nonnull)CUSTOM_SHORT_ID SWIFT_WARN_UNUSED_RESULT;
/// A option enable re-engagement-feature of attribution. (“off” | “on_true” | “on_false”)
/// note:
/// “off” uses touchpoint from install and deeplink event.
/// note:
/// “on_true” uses touchpoint from deeplink event only.
/// Can be used by re-engagement campaign.
/// note:
/// “on_false” uses touchpoint from install event only.
/// Can be used by UA(user-acquisition) campaign.
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull IS_REENGAGEMENT;)
+ (NSString * _Nonnull)IS_REENGAGEMENT SWIFT_WARN_UNUSED_RESULT;
@end

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

#else
#error unsupported Swift architecture
#endif
