#import <React/RCTBridgeModule.h>

@interface RCT_EXTERN_MODULE(WebIdMetaPlugin, NSObject)


RCT_EXTERN_METHOD(createMetaPlugin:(NSString *)uri
                  username:(NSString*)username
                  apiKey:(NSString*)apiKey
                  certsBase64: (NSArray*)certsBase64
                  plugins: (NSArray*)plugins
                  withResolver:(RCTPromiseResolveBlock)resolve
                  withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(verifyActionId:(NSString *)actionId
                  withResolver:(RCTPromiseResolveBlock)resolve
                  withRejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(start:(NSString*)lightThemeJSON
                  darkThemeJSON:(NSString*)darkThemeJSON
                  withResolver:(RCTPromiseResolveBlock)resolve
                  withRejecter:(RCTPromiseRejectBlock)reject)

+ (BOOL)requiresMainQueueSetup
{
  return NO;
}

@end
