#import <React/RCTBridgeModule.h>

@interface RCT_EXTERN_MODULE(GoogleMlkitTranslate, NSObject)

+ (BOOL)requiresMainQueueSetup
{
    return NO;
}

RCT_EXTERN_METHOD(translate:(NSString *)text sourceLanguage:(NSString *)sourceLanguage
                  targetLanguage:(NSString *)targetLanguage
                  requireWifiToDownloadModel:(BOOL)requireWifiToDownloadModel
                 resolve:(RCTPromiseResolveBlock)resolve
                 reject:(RCTPromiseRejectBlock)reject)

RCT_EXTERN_METHOD(translateMany:(NSArray *)texts sourceLanguage:(NSString *)sourceLanguage
                  targetLanguage:(NSString *)targetLanguage
                  requireWifiToDownloadModel:(BOOL)requireWifiToDownloadModel
                 resolve:(RCTPromiseResolveBlock)resolve
                 reject:(RCTPromiseRejectBlock)reject)


@end
