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

@interface RCT_EXTERN_MODULE(NetworkModule, NSObject)

RCT_EXTERN_METHOD(completeRequest:(nonnull NSString*) requestId
                  url:(NSString*)url
                  headers:(NSDictionary*)headersAsJson
                  body:(NSString*)bodyAsBase64
                  resolver:(RCTPromiseResolveBlock)resolve
                  rejecter:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(completeResponse:(nonnull NSString*) responseId
                  headers:(NSDictionary*)headersAsJson
                  body:(NSString*)bodyAsBase64
                  resolver:(RCTPromiseResolveBlock)resolve
                  rejecter:(RCTPromiseRejectBlock)reject)

+ (BOOL)requiresMainQueueSetup {
    return true;
}

@end
