/**
 * 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: GenerateModuleCpp.js
 */

#include "RNReactNativeLocalDownloadSpecJSI.h"

namespace facebook::react {

static jsi::Value __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_localDownload(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeReactNativeLocalDownloadCxxSpecJSI *>(&turboModule)->localDownload(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_getContentFd(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeReactNativeLocalDownloadCxxSpecJSI *>(&turboModule)->getContentFd(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_closeFd(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeReactNativeLocalDownloadCxxSpecJSI *>(&turboModule)->closeFd(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_persistContentPermission(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeReactNativeLocalDownloadCxxSpecJSI *>(&turboModule)->persistContentPermission(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt)
  );
}
static jsi::Value __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_copyFileSAF(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
  return static_cast<NativeReactNativeLocalDownloadCxxSpecJSI *>(&turboModule)->copyFileSAF(
    rt,
    count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asString(rt),
    count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asString(rt)
  );
}

NativeReactNativeLocalDownloadCxxSpecJSI::NativeReactNativeLocalDownloadCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
  : TurboModule("ReactNativeLocalDownload", jsInvoker) {
  methodMap_["localDownload"] = MethodMetadata {1, __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_localDownload};
  methodMap_["getContentFd"] = MethodMetadata {1, __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_getContentFd};
  methodMap_["closeFd"] = MethodMetadata {1, __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_closeFd};
  methodMap_["persistContentPermission"] = MethodMetadata {1, __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_persistContentPermission};
  methodMap_["copyFileSAF"] = MethodMetadata {2, __hostFunction_NativeReactNativeLocalDownloadCxxSpecJSI_copyFileSAF};
}


} // namespace facebook::react
