#import <React/RCTBridgeModule.h>
#import <React/RCTEventEmitter.h>

@interface RCT_EXTERN_MODULE(Blux, RCTEventEmitter)

RCT_EXTERN_METHOD(initialize:(NSString)bluxClientId withBluxSecretKey:(NSString)bluxSecretKey
                 withRequestPermissionOnLaunch:(BOOL)requestPermissionOnLaunch
                 withResolver:(RCTPromiseResolveBlock)resolve
                 withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(setLogLevel:(NSString)logLevel
                 withResolver:(RCTPromiseResolveBlock)resolve
                 withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(setUserId:(NSString)userId
                 withResolver:(RCTPromiseResolveBlock)resolve
                 withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(sendRequest:(NSArray)events
                 withResolver:(RCTPromiseResolveBlock)resolve
                 withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(startSendEventNotificationClicked)

RCT_EXTERN_METHOD(startSendEventNotificationForegroundReceived)

+ (BOOL)requiresMainQueueSetup
{
  return NO;
}


@end
