#if 0
#elif defined(__arm64__) && __arm64__
// Generated by Apple Swift version 6.1.2 effective-5.10 (swiftlang-6.1.2.1.2 clang-1700.0.13.5)
#ifndef BIDMACHINE_SWIFT_H
#define BIDMACHINE_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 CoreFoundation;
@import Foundation;
@import ObjectiveC;
@import UIKit;
#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="BidMachine",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif

#if defined(__OBJC__)

SWIFT_CLASS_NAMED("AdFormat")
@interface BidMachineAdFormat : NSObject
@property (nonatomic, readonly) NSUInteger hash;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@interface BidMachineAdFormat (SWIFT_EXTENSION(BidMachine))
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull unknown;)
+ (BidMachineAdFormat * _Nonnull)unknown SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull banner320x50;)
+ (BidMachineAdFormat * _Nonnull)banner320x50 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull banner728x90;)
+ (BidMachineAdFormat * _Nonnull)banner728x90 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull banner300x250;)
+ (BidMachineAdFormat * _Nonnull)banner300x250 SWIFT_WARN_UNUSED_RESULT;
+ (BidMachineAdFormat * _Nonnull)bannerAdaptiveWithWidth:(uint32_t)width maxHeight:(uint32_t)maxHeight SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull interstitial;)
+ (BidMachineAdFormat * _Nonnull)interstitial SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull interstitialStatic;)
+ (BidMachineAdFormat * _Nonnull)interstitialStatic SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull interstitialVideo;)
+ (BidMachineAdFormat * _Nonnull)interstitialVideo SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull rewarded;)
+ (BidMachineAdFormat * _Nonnull)rewarded SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull rewardedStatic;)
+ (BidMachineAdFormat * _Nonnull)rewardedStatic SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull rewardedVideo;)
+ (BidMachineAdFormat * _Nonnull)rewardedVideo SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull native;)
+ (BidMachineAdFormat * _Nonnull)native SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull nativeIcon;)
+ (BidMachineAdFormat * _Nonnull)nativeIcon SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull nativeImage;)
+ (BidMachineAdFormat * _Nonnull)nativeImage SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull nativeVideo;)
+ (BidMachineAdFormat * _Nonnull)nativeVideo SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull nativeIconAndVideo;)
+ (BidMachineAdFormat * _Nonnull)nativeIconAndVideo SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull nativeIconAndImage;)
+ (BidMachineAdFormat * _Nonnull)nativeIconAndImage SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineAdFormat * _Nonnull nativeImageAndVideo;)
+ (BidMachineAdFormat * _Nonnull)nativeImageAndVideo SWIFT_WARN_UNUSED_RESULT;
@end

@protocol BidMachineAdProtocol;
SWIFT_PROTOCOL("_TtP10BidMachine20BidMachineAdDelegate_")
@protocol BidMachineAdDelegate
- (void)didLoadAd:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didFailLoadAd:(id <BidMachineAdProtocol> _Nonnull)ad :(NSError * _Nonnull)error;
@optional
- (void)didPresentAd:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didFailPresentAd:(id <BidMachineAdProtocol> _Nonnull)ad :(NSError * _Nonnull)error;
- (void)didDismissAd:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)willPresentScreen:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didDismissScreen:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didPresentPartialScreen:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didDismissPartialScreen:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didUserInteraction:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didExpired:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didTrackImpression:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didTrackInteraction:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)didReceiveReward:(id <BidMachineAdProtocol> _Nonnull)ad;
@end

@class BidMachineRendererConfiguration;
@protocol BidMachineAuctionResponseProtocol;
@protocol BidMachineRequestInfoProtocol;
@class BidMachineAuctionRequest;
@class UIViewController;
SWIFT_PROTOCOL("_TtP10BidMachine20BidMachineAdProtocol_")
@protocol BidMachineAdProtocol
@property (nonatomic, readonly, strong) BidMachineRendererConfiguration * _Nonnull rendererConfiguration;
@property (nonatomic, readonly, strong) id <BidMachineAuctionResponseProtocol> _Nonnull auctionInfo;
@property (nonatomic, readonly, strong) id <BidMachineRequestInfoProtocol> _Nonnull requestInfo SWIFT_DEPRECATED_MSG("Use `auctionRequest` instead.");
@property (nonatomic, readonly, strong) BidMachineAuctionRequest * _Nonnull auctionRequest;
@property (nonatomic, strong) UIViewController * _Nullable controller;
@property (nonatomic, strong) id <BidMachineAdDelegate> _Nullable delegate;
@property (nonatomic, readonly) BOOL canShow;
- (void)loadAd;
@end

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

@class NSString;
@class BidMachineBiddingUnitConfiguration;
SWIFT_PROTOCOL("_TtP10BidMachine39BidMachineAuctionRequestBuilderProtocol_")
@protocol BidMachineAuctionRequestBuilderProtocol
- (nonnull instancetype)withPayload:(NSString * _Nonnull)payload;
- (nonnull instancetype)withUnitConfigurations:(NSArray<BidMachineBiddingUnitConfiguration *> * _Nonnull)configurations;
- (nonnull instancetype)appendPriceFloor:(double)price :(NSString * _Nonnull)name;
@end

SWIFT_PROTOCOL("_TtP10BidMachine33BidMachineAuctionResponseProtocol_")
@protocol BidMachineAuctionResponseProtocol
@property (nonatomic, readonly, copy) NSString * _Nonnull bidId;
@property (nonatomic, readonly, copy) NSString * _Nullable creativeId;
@property (nonatomic, readonly, copy) NSString * _Nullable dealId;
@property (nonatomic, readonly, copy) NSString * _Nullable cId;
@property (nonatomic, readonly, copy) NSString * _Nonnull demandSource;
@property (nonatomic, readonly) double price;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull customParams;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull customExtras;
@end

@class NSCoder;
SWIFT_CLASS("_TtC10BidMachine16BidMachineBanner")
@interface BidMachineBanner : UIView
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (void)didMoveToSuperview;
@property (nonatomic, readonly, strong) BidMachineRendererConfiguration * _Nonnull rendererConfiguration;
@property (nonatomic, readonly, strong) BidMachineAuctionRequest * _Nonnull auctionRequest;
@property (nonatomic, readonly, strong) id <BidMachineRequestInfoProtocol> _Nonnull requestInfo;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end

@interface BidMachineBanner (SWIFT_EXTENSION(BidMachine)) <BidMachineAdProtocol>
@property (nonatomic, readonly) BOOL canShow;
@property (nonatomic, readonly, strong) id <BidMachineAuctionResponseProtocol> _Nonnull auctionInfo;
@property (nonatomic, strong) id <BidMachineAdDelegate> _Nullable delegate;
@property (nonatomic, strong) UIViewController * _Nullable controller;
- (void)loadAd;
@end

SWIFT_CLASS("_TtC10BidMachine20BidMachineBannerSize")
@interface BidMachineBannerSize : NSObject
@property (nonatomic, readonly) NSUInteger hash;
- (BOOL)isEqual:(id _Nullable)object SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@interface BidMachineBannerSize (SWIFT_EXTENSION(BidMachine))
@property (nonatomic, readonly, copy) NSString * _Nonnull description;
@end

@interface BidMachineBannerSize (SWIFT_EXTENSION(BidMachine))
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineBannerSize * _Nonnull banner;)
+ (BidMachineBannerSize * _Nonnull)banner SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineBannerSize * _Nonnull leaderboard;)
+ (BidMachineBannerSize * _Nonnull)leaderboard SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineBannerSize * _Nonnull mrec;)
+ (BidMachineBannerSize * _Nonnull)mrec SWIFT_WARN_UNUSED_RESULT;
+ (BidMachineBannerSize * _Nonnull)adaptiveWithWidth:(uint32_t)width maxHeight:(uint32_t)maxHeight SWIFT_WARN_UNUSED_RESULT;
@end

SWIFT_PROTOCOL("_TtP10BidMachine36BidMachineBiddingInfoBuilderProtocol_")
@protocol BidMachineBiddingInfoBuilderProtocol
- (nonnull instancetype)withTestMode:(BOOL)test;
- (nonnull instancetype)withLoggingMode:(BOOL)logging;
@end

SWIFT_PROTOCOL("_TtP10BidMachine29BidMachineBiddingInfoProtocol_")
@protocol BidMachineBiddingInfoProtocol
@property (nonatomic, readonly) BOOL isTestMode;
@property (nonatomic, readonly) BOOL isLoggingMode;
- (void)populate:(SWIFT_NOESCAPE void (^ _Nonnull)(id <BidMachineBiddingInfoBuilderProtocol> _Nonnull))builderBlock;
@end

SWIFT_CLASS("_TtC10BidMachine36BidMachineBiddingNetworkConfiguraton")
@interface BidMachineBiddingNetworkConfiguraton : NSObject
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable params;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable extras;
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name params:(NSDictionary<NSString *, id> * _Nullable)params extras:(NSDictionary<NSString *, id> * _Nullable)extras OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

enum BidMachinePlacementFormat : NSInteger;
SWIFT_CLASS("_TtC10BidMachine34BidMachineBiddingUnitConfiguration")
@interface BidMachineBiddingUnitConfiguration : NSObject
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
@property (nonatomic, readonly) enum BidMachinePlacementFormat format;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable params;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nullable extras;
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name format:(enum BidMachinePlacementFormat)format params:(NSDictionary<NSString *, id> * _Nullable)params extras:(NSDictionary<NSString *, id> * _Nullable)extras OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

SWIFT_PROTOCOL("_TtP10BidMachine29BidMachineInfoBuilderProtocol_")
@protocol BidMachineInfoBuilderProtocol
- (nonnull instancetype)withTestMode:(BOOL)test;
- (nonnull instancetype)withLoggingMode:(BOOL)logging;
- (nonnull instancetype)withBidLoggingMode:(BOOL)logging;
- (nonnull instancetype)withEventLoggingMode:(BOOL)logging;
- (nonnull instancetype)withSanitizerLoggingMode:(BOOL)logging;
- (nonnull instancetype)withSSP:(NSString * _Nonnull)ssp;
@end

@protocol BidMachinePublisherInfoProtocol;
@protocol BidMachineTargetingInfoProtocol;
@protocol BidMachineRegulationInfoProtocol;
SWIFT_PROTOCOL("_TtP10BidMachine22BidMachineInfoProtocol_")
@protocol BidMachineInfoProtocol
@property (nonatomic, readonly) BOOL isInitialized;
@property (nonatomic, readonly, strong) id <BidMachinePublisherInfoProtocol> _Nonnull publisherInfo;
@property (nonatomic, readonly, strong) id <BidMachineTargetingInfoProtocol> _Nonnull targetingInfo;
@property (nonatomic, readonly, strong) id <BidMachineRegulationInfoProtocol> _Nonnull regulationInfo;
@property (nonatomic, readonly, strong) id <BidMachineBiddingInfoProtocol> _Nonnull biddingInfo;
- (void)populate:(SWIFT_NOESCAPE void (^ _Nonnull)(id <BidMachineInfoBuilderProtocol> _Nonnull))builderBlock;
@end

SWIFT_CLASS("_TtC10BidMachine22BidMachineInterstitial")
@interface BidMachineInterstitial : NSObject
@property (nonatomic, readonly, strong) BidMachineRendererConfiguration * _Nonnull rendererConfiguration;
@property (nonatomic, readonly, strong) BidMachineAuctionRequest * _Nonnull auctionRequest;
@property (nonatomic, readonly, strong) id <BidMachineRequestInfoProtocol> _Nonnull requestInfo;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@interface BidMachineInterstitial (SWIFT_EXTENSION(BidMachine)) <BidMachineAdProtocol>
@property (nonatomic, readonly) BOOL canShow;
@property (nonatomic, readonly, strong) id <BidMachineAuctionResponseProtocol> _Nonnull auctionInfo;
@property (nonatomic, strong) id <BidMachineAdDelegate> _Nullable delegate;
@property (nonatomic, strong) UIViewController * _Nullable controller;
- (void)loadAd;
- (void)presentAd;
@end

SWIFT_CLASS("_TtC10BidMachine16BidMachineNative")
@interface BidMachineNative : NSObject
@property (nonatomic, readonly, strong) BidMachineRendererConfiguration * _Nonnull rendererConfiguration;
@property (nonatomic, readonly, strong) BidMachineAuctionRequest * _Nonnull auctionRequest;
@property (nonatomic, readonly, strong) id <BidMachineRequestInfoProtocol> _Nonnull requestInfo;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@protocol BidMachineNativeAdRendering;
@interface BidMachineNative (SWIFT_EXTENSION(BidMachine)) <BidMachineAdProtocol>
@property (nonatomic, readonly) BOOL canShow;
@property (nonatomic, readonly, strong) id <BidMachineAuctionResponseProtocol> _Nonnull auctionInfo;
@property (nonatomic, strong) id <BidMachineAdDelegate> _Nullable delegate;
@property (nonatomic, strong) UIViewController * _Nullable controller;
- (void)loadAd;
- (BOOL)presentAd:(UIView * _Nonnull)container :(id <BidMachineNativeAdRendering> _Nonnull)renderingAd error:(NSError * _Nullable * _Nullable)error;
- (void)registerDefaultAssetsForInteraction;
- (void)registerAssetsForInteraction:(NSArray<NSNumber *> * _Nonnull)assets;
- (void)unregisterView;
@end

@interface BidMachineNative (SWIFT_EXTENSION(BidMachine))
@property (nonatomic, readonly, copy) NSString * _Nullable title;
@property (nonatomic, readonly, copy) NSString * _Nullable body;
@property (nonatomic, readonly, copy) NSString * _Nullable cta;
@property (nonatomic, readonly, copy) NSString * _Nullable icon;
@property (nonatomic, readonly, copy) NSString * _Nullable main;
@property (nonatomic, readonly) BOOL isVideo;
- (void)trackContainerAdded;
- (void)trackImpression;
- (void)trackClick;
@end

@class UILabel;
@class UIImageView;
SWIFT_PROTOCOL("_TtP10BidMachine27BidMachineNativeAdRendering_")
@protocol BidMachineNativeAdRendering
@property (nonatomic, readonly, strong) UILabel * _Nullable titleLabel;
@property (nonatomic, readonly, strong) UILabel * _Nullable callToActionLabel;
@property (nonatomic, readonly, strong) UILabel * _Nullable descriptionLabel;
@property (nonatomic, readonly, strong) UIImageView * _Nullable iconView;
@property (nonatomic, readonly, strong) UIView * _Nullable mediaContainerView;
@property (nonatomic, readonly, strong) UIView * _Nullable adChoiceView;
@end

typedef SWIFT_ENUM(NSInteger, BidMachineNativeAdRenderingAssetType, open) {
  BidMachineNativeAdRenderingAssetTypeTitleLabel = 0,
  BidMachineNativeAdRenderingAssetTypeCallToActionLabel = 1,
  BidMachineNativeAdRenderingAssetTypeDescriptionLabel = 2,
  BidMachineNativeAdRenderingAssetTypeIconView = 3,
  BidMachineNativeAdRenderingAssetTypeMediaContainerView = 4,
  BidMachineNativeAdRenderingAssetTypeAdChoiceView = 5,
};

SWIFT_CLASS("_TtC10BidMachine19BidMachinePlacement")
@interface BidMachinePlacement : NSObject
@property (nonatomic, readonly) enum BidMachinePlacementFormat format SWIFT_DEPRECATED_MSG("Deprecated since 3.5.0. Will be removed in future releases.");
@property (nonatomic, readonly, strong) BidMachineAdFormat * _Nonnull adFormat;
@property (nonatomic, readonly, copy) NSString * _Nullable placementId;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull customParameters;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

SWIFT_PROTOCOL("_TtP10BidMachine34BidMachinePlacementBuilderProtocol_")
@protocol BidMachinePlacementBuilderProtocol
- (nonnull instancetype)withPlacementId:(NSString * _Nonnull)placementId;
- (nonnull instancetype)withCustomParameters:(NSDictionary<NSString *, id> * _Nonnull)params;
@end

SWIFT_PROTOCOL("_TtP10BidMachine28BidMachinePriceFloorProtocol_")
@protocol BidMachinePriceFloorProtocol
@property (nonatomic, readonly) double price;
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
@end

SWIFT_PROTOCOL("_TtP10BidMachine38BidMachinePublisherInfoBuilderProtocol_")
@protocol BidMachinePublisherInfoBuilderProtocol
- (nonnull instancetype)withId:(NSString * _Nonnull)id;
- (nonnull instancetype)withName:(NSString * _Nonnull)name;
- (nonnull instancetype)withDomain:(NSString * _Nonnull)domain;
- (nonnull instancetype)withCategories:(NSArray<NSString *> * _Nonnull)cat;
@end

SWIFT_PROTOCOL("_TtP10BidMachine31BidMachinePublisherInfoProtocol_")
@protocol BidMachinePublisherInfoProtocol
@property (nonatomic, readonly, copy) NSString * _Nullable ID;
@property (nonatomic, readonly, copy) NSString * _Nullable name;
@property (nonatomic, readonly, copy) NSString * _Nullable domain;
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nonnull categories;
- (void)populate:(SWIFT_NOESCAPE void (^ _Nonnull)(id <BidMachinePublisherInfoBuilderProtocol> _Nonnull))builderBlock;
@end

SWIFT_PROTOCOL("_TtP10BidMachine31BidMachineRegulationGPPProtocol_")
@protocol BidMachineRegulationGPPProtocol
@property (nonatomic, readonly, copy) NSString * _Nullable gpp;
@property (nonatomic, readonly, copy) NSArray<NSNumber *> * _Nullable sid;
@end

SWIFT_PROTOCOL("_TtP10BidMachine39BidMachineRegulationInfoBuilderProtocol_")
@protocol BidMachineRegulationInfoBuilderProtocol
- (nonnull instancetype)withCOPPA:(BOOL)coppa;
- (nonnull instancetype)withGDPRZone:(BOOL)gdpr;
- (nonnull instancetype)withGDPRConsent:(BOOL)consent;
- (nonnull instancetype)withGDPRConsentString:(NSString * _Nonnull)consent;
- (nonnull instancetype)withUSPrivacyString:(NSString * _Nonnull)privacy;
- (nonnull instancetype)withGPP:(NSString * _Nonnull)gpp :(NSArray<NSNumber *> * _Nonnull)sid;
@end

@protocol BidMachineRegulationZoneProtocol;
SWIFT_PROTOCOL("_TtP10BidMachine32BidMachineRegulationInfoProtocol_")
@protocol BidMachineRegulationInfoProtocol
@property (nonatomic, readonly) BOOL COPPA;
@property (nonatomic, readonly, strong) id <BidMachineRegulationGPPProtocol> _Nonnull GPPZone;
@property (nonatomic, readonly, strong) id <BidMachineRegulationZoneProtocol> _Nonnull CCPAZone;
@property (nonatomic, readonly, strong) id <BidMachineRegulationZoneProtocol> _Nonnull GDPRZone;
- (void)populate:(SWIFT_NOESCAPE void (^ _Nonnull)(id <BidMachineRegulationInfoBuilderProtocol> _Nonnull))builderBlock;
@end

SWIFT_PROTOCOL("_TtP10BidMachine32BidMachineRegulationZoneProtocol_")
@protocol BidMachineRegulationZoneProtocol
@property (nonatomic, readonly) BOOL isZone;
@property (nonatomic, readonly) BOOL isConsent;
@property (nonatomic, readonly, copy) NSString * _Nullable zoneValue;
@end

SWIFT_CLASS("_TtC10BidMachine31BidMachineRendererConfiguration")
@interface BidMachineRendererConfiguration : NSObject
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nonnull extras;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

SWIFT_PROTOCOL("_TtP10BidMachine32BidMachineRequestBuilderProtocol_")
@protocol BidMachineRequestBuilderProtocol
- (nonnull instancetype)withPlacementId:(NSString * _Nonnull)ID;
- (nonnull instancetype)withTimeout:(double)timeout;
- (nonnull instancetype)withCustomParameters:(NSDictionary<NSString *, id> * _Nonnull)params;
- (nonnull instancetype)appendPriceFloor:(double)price :(NSString * _Nonnull)name;
- (nonnull instancetype)withPayload:(NSString * _Nonnull)payload;
- (nonnull instancetype)withUnitConfigurations:(NSArray<BidMachineBiddingUnitConfiguration *> * _Nonnull)configurations;
@end

SWIFT_PROTOCOL("_TtP10BidMachine34BidMachineRequestPopulatorProtocol_")
@protocol BidMachineRequestPopulatorProtocol
- (void)populate:(SWIFT_NOESCAPE void (^ _Nonnull)(id <BidMachineRequestBuilderProtocol> _Nonnull))builderBlock;
@end

@class BidMachineRequestPlacement;
SWIFT_PROTOCOL("_TtP10BidMachine29BidMachineRequestInfoProtocol_")
@protocol BidMachineRequestInfoProtocol
@property (nonatomic, readonly, strong) BidMachineRequestPlacement * _Nonnull placement;
@property (nonatomic, readonly, copy) NSString * _Nullable placementId;
@property (nonatomic, readonly, copy) NSString * _Nullable payload;
@property (nonatomic, readonly) double timeout;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, id> * _Nonnull customParams;
@property (nonatomic, readonly, copy) NSArray<id <BidMachinePriceFloorProtocol>> * _Nonnull priceFloors;
@property (nonatomic, readonly, copy) NSArray<BidMachineBiddingUnitConfiguration *> * _Nonnull unitsConfigurations;
@end

SWIFT_PROTOCOL("_TtP10BidMachine38BidMachineRequestConfigurationProtocol_")
@protocol BidMachineRequestConfigurationProtocol <BidMachineRequestInfoProtocol, BidMachineRequestPopulatorProtocol>
@end

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

@interface BidMachineRequestPlacement (SWIFT_EXTENSION(BidMachine))
@property (nonatomic, readonly, copy) NSString * _Nonnull name;
@end

SWIFT_CLASS("_TtC10BidMachine18BidMachineRewarded")
@interface BidMachineRewarded : NSObject
@property (nonatomic, readonly, strong) BidMachineRendererConfiguration * _Nonnull rendererConfiguration;
@property (nonatomic, readonly, strong) BidMachineAuctionRequest * _Nonnull auctionRequest;
@property (nonatomic, readonly, strong) id <BidMachineRequestInfoProtocol> _Nonnull requestInfo;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@interface BidMachineRewarded (SWIFT_EXTENSION(BidMachine)) <BidMachineAdProtocol>
@property (nonatomic, readonly) BOOL canShow;
@property (nonatomic, readonly, strong) id <BidMachineAuctionResponseProtocol> _Nonnull auctionInfo;
@property (nonatomic, strong) id <BidMachineAdDelegate> _Nullable delegate;
@property (nonatomic, strong) UIViewController * _Nullable controller;
- (void)loadAd;
- (void)presentAd;
@end

SWIFT_CLASS("_TtC10BidMachine13BidMachineSdk")
@interface BidMachineSdk : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) BidMachineSdk * _Nonnull shared;)
+ (BidMachineSdk * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull sdkVersion;)
+ (NSString * _Nonnull)sdkVersion SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull sdkName;)
+ (NSString * _Nonnull)sdkName SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull partnerName;)
+ (NSString * _Nonnull)partnerName SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSString * _Nonnull partnerVersion;)
+ (NSString * _Nonnull)partnerVersion SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine))
- (void)registerNetworks:(NSArray<BidMachineBiddingNetworkConfiguraton *> * _Nonnull)configurations;
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine))
- (BidMachinePlacement * _Nullable)placementFrom:(enum BidMachinePlacementFormat)format error:(NSError * _Nullable * _Nullable)error builder:(void (^ _Nullable)(id <BidMachinePlacementBuilderProtocol> _Nonnull))builder SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("\n        Deprecated since 3.5.0. Will be removed in future releases.\n        Use placement(_ adFormat:, builder:) instead\n    ");
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine))
- (id _Nullable)extrasValueBy:(NSString * _Nonnull)key SWIFT_WARN_UNUSED_RESULT;
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine))
- (BidMachinePlacement * _Nullable)placement:(BidMachineAdFormat * _Nonnull)adFormat error:(NSError * _Nullable * _Nullable)error builder:(void (^ _Nullable)(id <BidMachinePlacementBuilderProtocol> _Nonnull))builder SWIFT_WARN_UNUSED_RESULT;
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine))
- (id <BidMachineRequestConfigurationProtocol> _Nullable)requestConfiguration:(enum BidMachinePlacementFormat)format error:(NSError * _Nullable * _Nullable)error SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("Use `auctionRequest(placement:builder:)` instead.");
- (BidMachineAuctionRequest * _Nonnull)auctionRequestWithPlacement:(BidMachinePlacement * _Nonnull)placement builder:(void (^ _Nullable)(id <BidMachineAuctionRequestBuilderProtocol> _Nonnull))builder SWIFT_WARN_UNUSED_RESULT;
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine))
- (void)notifyMediationWin:(id <BidMachineAdProtocol> _Nonnull)ad;
- (void)notifyMediationLoss:(NSString * _Nonnull)winner ecpm:(double)ecpm ad:(id <BidMachineAdProtocol> _Nonnull)ad;
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine))
- (void)initializeSdk:(NSString * _Nonnull)sourceId;
- (void)tokenWith:(enum BidMachinePlacementFormat)format completion:(void (^ _Nonnull)(NSString * _Nullable))completion SWIFT_DEPRECATED_MSG("Use `token(placement:completion:)` instead.");
- (void)tokenWithPlacement:(BidMachinePlacement * _Nonnull)placement completion:(void (^ _Nonnull)(NSString * _Nullable))completion;
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine))
- (void)ad:(id <BidMachineRequestConfigurationProtocol> _Nullable)configuration :(void (^ _Nonnull)(id <BidMachineAdProtocol> _Nullable, NSError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use `ad(request:completion:)` instead.");
- (void)interstitial:(id <BidMachineRequestConfigurationProtocol> _Nullable)configuration :(void (^ _Nonnull)(BidMachineInterstitial * _Nullable, NSError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use `interstitial(request:completion:)` instead.");
- (void)rewarded:(id <BidMachineRequestConfigurationProtocol> _Nullable)configuration :(void (^ _Nonnull)(BidMachineRewarded * _Nullable, NSError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use `rewarded(request:completion:)` instead.");
- (void)banner:(id <BidMachineRequestConfigurationProtocol> _Nullable)configuration :(void (^ _Nonnull)(BidMachineBanner * _Nullable, NSError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use `banner(request:completion:)` instead.");
- (void)native:(id <BidMachineRequestConfigurationProtocol> _Nullable)configuration :(void (^ _Nonnull)(BidMachineNative * _Nullable, NSError * _Nullable))completion SWIFT_DEPRECATED_MSG("Use `native(request:completion:)` instead.");
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine))
- (void)adWithRequest:(BidMachineAuctionRequest * _Nullable)request completion:(void (^ _Nonnull)(id <BidMachineAdProtocol> _Nullable, NSError * _Nullable))completion;
- (void)interstitialWithRequest:(BidMachineAuctionRequest * _Nullable)request completion:(void (^ _Nonnull)(BidMachineInterstitial * _Nullable, NSError * _Nullable))completion;
- (void)rewardedWithRequest:(BidMachineAuctionRequest * _Nullable)request completion:(void (^ _Nonnull)(BidMachineRewarded * _Nullable, NSError * _Nullable))completion;
- (void)bannerWithRequest:(BidMachineAuctionRequest * _Nullable)request completion:(void (^ _Nonnull)(BidMachineBanner * _Nullable, NSError * _Nullable))completion;
- (void)nativeWithRequest:(BidMachineAuctionRequest * _Nullable)request completion:(void (^ _Nonnull)(BidMachineNative * _Nullable, NSError * _Nullable))completion;
@end

@interface BidMachineSdk (SWIFT_EXTENSION(BidMachine)) <BidMachineInfoProtocol>
@property (nonatomic, readonly) BOOL isInitialized;
@property (nonatomic, readonly, strong) id <BidMachinePublisherInfoProtocol> _Nonnull publisherInfo;
@property (nonatomic, readonly, strong) id <BidMachineTargetingInfoProtocol> _Nonnull targetingInfo;
@property (nonatomic, readonly, strong) id <BidMachineRegulationInfoProtocol> _Nonnull regulationInfo;
@property (nonatomic, readonly, strong) id <BidMachineBiddingInfoProtocol> _Nonnull biddingInfo;
- (void)populate:(SWIFT_NOESCAPE void (^ _Nonnull)(id <BidMachineInfoBuilderProtocol> _Nonnull))builderBlock;
@end

enum BidMachineUserGender : NSInteger;
@class CLLocation;
enum BidMachineFrameworkName : NSInteger;
SWIFT_PROTOCOL("_TtP10BidMachine38BidMachineTargetingInfoBuilderProtocol_")
@protocol BidMachineTargetingInfoBuilderProtocol
- (nonnull instancetype)withUserId:(NSString * _Nonnull)id;
- (nonnull instancetype)withUserGender:(enum BidMachineUserGender)gender;
- (nonnull instancetype)withUserYOB:(uint32_t)yob;
- (nonnull instancetype)withUserLocation:(CLLocation * _Nonnull)location;
- (nonnull instancetype)withCountry:(NSString * _Nonnull)country;
- (nonnull instancetype)withCity:(NSString * _Nonnull)city;
- (nonnull instancetype)withZip:(NSString * _Nonnull)zip;
- (nonnull instancetype)withKeywords:(NSString * _Nonnull)keywords;
- (nonnull instancetype)withBlockedApps:(NSArray<NSString *> * _Nonnull)bapp;
- (nonnull instancetype)withBlockedCategories:(NSArray<NSString *> * _Nonnull)bcat;
- (nonnull instancetype)withBlockedAdvertisers:(NSArray<NSString *> * _Nonnull)badv;
- (nonnull instancetype)withStoreURL:(NSString * _Nonnull)url;
- (nonnull instancetype)withStoreId:(NSString * _Nonnull)id;
- (nonnull instancetype)withStoreCategory:(NSString * _Nonnull)cat;
- (nonnull instancetype)withStoreSubCategories:(NSArray<NSString *> * _Nonnull)subcat;
- (nonnull instancetype)withPaid:(BOOL)paid;
- (nonnull instancetype)withFrameworkName:(enum BidMachineFrameworkName)name;
- (nonnull instancetype)appendExternalId:(NSString * _Nonnull)sourceId :(NSString * _Nonnull)sourceValue;
@end

SWIFT_PROTOCOL("_TtP10BidMachine31BidMachineTargetingInfoProtocol_")
@protocol BidMachineTargetingInfoProtocol
@property (nonatomic, readonly, copy) NSString * _Nullable userId;
@property (nonatomic, readonly) enum BidMachineUserGender userGender;
@property (nonatomic, readonly) uint32_t userYOB;
@property (nonatomic, readonly, strong) CLLocation * _Nullable userLocation;
@property (nonatomic, readonly, copy) NSString * _Nullable country;
@property (nonatomic, readonly, copy) NSString * _Nullable city;
@property (nonatomic, readonly, copy) NSString * _Nullable zip;
@property (nonatomic, readonly, copy) NSString * _Nullable keywords;
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nonnull blockedApps;
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nonnull blockedCategories;
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nonnull blockedAdvertisers;
@property (nonatomic, readonly, copy) NSString * _Nullable storeURL;
@property (nonatomic, readonly, copy) NSString * _Nullable storeId;
@property (nonatomic, readonly, copy) NSString * _Nullable storeCategory;
@property (nonatomic, readonly, copy) NSArray<NSString *> * _Nonnull storeSubCategories;
@property (nonatomic, readonly) BOOL paid;
@property (nonatomic, readonly) enum BidMachineFrameworkName frameworkName;
@property (nonatomic, readonly, copy) NSDictionary<NSString *, NSString *> * _Nonnull externalIds;
- (void)populate:(SWIFT_NOESCAPE void (^ _Nonnull)(id <BidMachineTargetingInfoBuilderProtocol> _Nonnull))builderBlock;
@end

typedef SWIFT_ENUM_NAMED(NSInteger, BidMachineFrameworkName, "FrameworkName", open) {
  BidMachineFrameworkNameUnknown = 0,
  BidMachineFrameworkNameNative = 1,
  BidMachineFrameworkNameUnity = 2,
};

@interface NSString (SWIFT_EXTENSION(BidMachine))
@property (nonatomic, readonly) enum BidMachinePlacementFormat bidmachine_placement_format SWIFT_DEPRECATED_MSG("Deprecated since 3.5.0. Will be removed in future releases.");
@end

typedef SWIFT_ENUM_NAMED(NSInteger, BidMachinePlacementFormat, "PlacementFormat", open) {
  BidMachinePlacementFormatUnknown = 0,
  BidMachinePlacementFormatBanner = 1,
  BidMachinePlacementFormatBanner320x50 = 2,
  BidMachinePlacementFormatBanner728x90 = 3,
  BidMachinePlacementFormatBanner300x250 = 4,
  BidMachinePlacementFormatInterstitial = 5,
  BidMachinePlacementFormatInterstitialVideo = 6,
  BidMachinePlacementFormatInterstitialStatic = 7,
  BidMachinePlacementFormatRewarded = 8,
  BidMachinePlacementFormatRewardedVideo = 9,
  BidMachinePlacementFormatRewardedStatic = 10,
  BidMachinePlacementFormatNative = 11,
  BidMachinePlacementFormatNativeIcon = 12,
  BidMachinePlacementFormatNativeImage = 13,
  BidMachinePlacementFormatNativeVideo = 14,
  BidMachinePlacementFormatNativeIconAndVideo = 15,
  BidMachinePlacementFormatNativeIconAndImage = 16,
  BidMachinePlacementFormatNativeImageAndVideo = 17,
};

typedef SWIFT_ENUM_NAMED(NSInteger, BidMachineUserGender, "UserGender", open) {
  BidMachineUserGenderUnknown = 0,
  BidMachineUserGenderMale = 1,
  BidMachineUserGenderFemale = 2,
};

#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
