/**
 * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
 *
 * Do not edit this file as changes may cause incorrect behavior and will be lost
 * once the code is regenerated.
 *
 * @generated by codegen project: GenerateModuleObjCpp
 *
 * We create an umbrella header (and corresponding implementation) here since
 * Cxx compilation in BUCK has a limitation: source-code producing genrule()s
 * must have a single output. More files => more genrule()s => slower builds.
 */

#import "RNFBStorageTurboModules.h"


@implementation NativeRNFBTurboStorageSpecBase


- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper
{
  _eventEmitterCallback = std::move(eventEmitterCallbackWrapper->_eventEmitterCallback);
}
@end

@implementation RCTCxxConvert (NativeRNFBTurboStorage_StorageListOptions)
+ (RCTManagedPointer *)JS_NativeRNFBTurboStorage_StorageListOptions:(id)json
{
  return facebook::react::managedPointer<JS::NativeRNFBTurboStorage::StorageListOptions>(json);
}
@end
namespace facebook::react {
  
    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_deleteObject(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "deleteObject", @selector(deleteObject:url:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_getDownloadURL(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getDownloadURL", @selector(getDownloadURL:url:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_getMetadata(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "getMetadata", @selector(getMetadata:url:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_updateMetadata(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "updateMetadata", @selector(updateMetadata:url:metadata:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_list(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "list", @selector(list:url:listOptions:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_listAll(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "listAll", @selector(listAll:url:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_setMaxDownloadRetryTime(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setMaxDownloadRetryTime", @selector(setMaxDownloadRetryTime:milliseconds:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_setMaxOperationRetryTime(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setMaxOperationRetryTime", @selector(setMaxOperationRetryTime:milliseconds:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_setMaxUploadRetryTime(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "setMaxUploadRetryTime", @selector(setMaxUploadRetryTime:milliseconds:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_useEmulator(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, VoidKind, "useEmulator", @selector(useEmulator:host:port:bucketUrl:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_writeToFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "writeToFile", @selector(writeToFile:url:localFilePath:taskId:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_putFile(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "putFile", @selector(putFile:url:localFilePath:metadata:taskId:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_putString(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, PromiseKind, "putString", @selector(putString:url:string:format:metadata:taskId:resolve:reject:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_setTaskStatus(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, BooleanKind, "setTaskStatus", @selector(setTaskStatus:taskId:status:), args, count);
    }

    static facebook::jsi::Value __hostFunction_NativeRNFBTurboStorageSpecJSI_getConstants(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
      return static_cast<ObjCTurboModule&>(turboModule).invokeObjCMethod(rt, ObjectKind, "getConstants", @selector(getConstants), args, count);
    }

  NativeRNFBTurboStorageSpecJSI::NativeRNFBTurboStorageSpecJSI(const ObjCTurboModule::InitParams &params)
    : ObjCTurboModule(params) {
      
        methodMap_["deleteObject"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboStorageSpecJSI_deleteObject};
        
        
        methodMap_["getDownloadURL"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboStorageSpecJSI_getDownloadURL};
        
        
        methodMap_["getMetadata"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboStorageSpecJSI_getMetadata};
        
        
        methodMap_["updateMetadata"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboStorageSpecJSI_updateMetadata};
        
        
        methodMap_["list"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboStorageSpecJSI_list};
        setMethodArgConversionSelector(@"list", 2, @"JS_NativeRNFBTurboStorage_StorageListOptions:");
        
        methodMap_["listAll"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboStorageSpecJSI_listAll};
        
        
        methodMap_["setMaxDownloadRetryTime"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboStorageSpecJSI_setMaxDownloadRetryTime};
        
        
        methodMap_["setMaxOperationRetryTime"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboStorageSpecJSI_setMaxOperationRetryTime};
        
        
        methodMap_["setMaxUploadRetryTime"] = MethodMetadata {2, __hostFunction_NativeRNFBTurboStorageSpecJSI_setMaxUploadRetryTime};
        
        
        methodMap_["useEmulator"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboStorageSpecJSI_useEmulator};
        
        
        methodMap_["writeToFile"] = MethodMetadata {4, __hostFunction_NativeRNFBTurboStorageSpecJSI_writeToFile};
        
        
        methodMap_["putFile"] = MethodMetadata {5, __hostFunction_NativeRNFBTurboStorageSpecJSI_putFile};
        
        
        methodMap_["putString"] = MethodMetadata {6, __hostFunction_NativeRNFBTurboStorageSpecJSI_putString};
        
        
        methodMap_["setTaskStatus"] = MethodMetadata {3, __hostFunction_NativeRNFBTurboStorageSpecJSI_setTaskStatus};
        
        
        methodMap_["getConstants"] = MethodMetadata {0, __hostFunction_NativeRNFBTurboStorageSpecJSI_getConstants};
        
  }
} // namespace facebook::react
