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

#pragma once

#include <ReactCommon/TurboModule.h>
#include <react/bridging/Bridging.h>

namespace facebook::react {


  class JSI_EXPORT NativeRNFBTurboFunctionsCxxSpecJSI : public TurboModule {
protected:
  NativeRNFBTurboFunctionsCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);

public:
  virtual jsi::Value httpsCallable(jsi::Runtime &rt, jsi::String appName, jsi::String region, std::optional<jsi::String> emulatorHost, double emulatorPort, jsi::String name, jsi::Object data, jsi::Object options) = 0;
  virtual jsi::Value httpsCallableFromUrl(jsi::Runtime &rt, jsi::String appName, jsi::String region, std::optional<jsi::String> emulatorHost, double emulatorPort, jsi::String url, jsi::Object data, jsi::Object options) = 0;
  virtual void httpsCallableStream(jsi::Runtime &rt, jsi::String appName, jsi::String region, std::optional<jsi::String> emulatorHost, double emulatorPort, jsi::String name, jsi::Object data, jsi::Object options, double listenerId) = 0;
  virtual void httpsCallableStreamFromUrl(jsi::Runtime &rt, jsi::String appName, jsi::String region, std::optional<jsi::String> emulatorHost, double emulatorPort, jsi::String url, jsi::Object data, jsi::Object options, double listenerId) = 0;
  virtual void removeFunctionsStreaming(jsi::Runtime &rt, jsi::String appName, jsi::String region, double listenerId) = 0;

};

template <typename T>
class JSI_EXPORT NativeRNFBTurboFunctionsCxxSpec : public TurboModule {
public:
  jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
    return delegate_.create(rt, propName);
  }

  std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
    return delegate_.getPropertyNames(runtime);
  }

  static constexpr std::string_view kModuleName = "NativeRNFBTurboFunctions";

protected:
  NativeRNFBTurboFunctionsCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
    : TurboModule(std::string{NativeRNFBTurboFunctionsCxxSpec::kModuleName}, jsInvoker),
      delegate_(reinterpret_cast<T*>(this), jsInvoker) {}


private:
  class Delegate : public NativeRNFBTurboFunctionsCxxSpecJSI {
  public:
    Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
      NativeRNFBTurboFunctionsCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {

    }

    jsi::Value httpsCallable(jsi::Runtime &rt, jsi::String appName, jsi::String region, std::optional<jsi::String> emulatorHost, double emulatorPort, jsi::String name, jsi::Object data, jsi::Object options) override {
      static_assert(
          bridging::getParameterCount(&T::httpsCallable) == 8,
          "Expected httpsCallable(...) to have 8 parameters");

      return bridging::callFromJs<jsi::Value>(
          rt, &T::httpsCallable, jsInvoker_, instance_, std::move(appName), std::move(region), std::move(emulatorHost), std::move(emulatorPort), std::move(name), std::move(data), std::move(options));
    }
    jsi::Value httpsCallableFromUrl(jsi::Runtime &rt, jsi::String appName, jsi::String region, std::optional<jsi::String> emulatorHost, double emulatorPort, jsi::String url, jsi::Object data, jsi::Object options) override {
      static_assert(
          bridging::getParameterCount(&T::httpsCallableFromUrl) == 8,
          "Expected httpsCallableFromUrl(...) to have 8 parameters");

      return bridging::callFromJs<jsi::Value>(
          rt, &T::httpsCallableFromUrl, jsInvoker_, instance_, std::move(appName), std::move(region), std::move(emulatorHost), std::move(emulatorPort), std::move(url), std::move(data), std::move(options));
    }
    void httpsCallableStream(jsi::Runtime &rt, jsi::String appName, jsi::String region, std::optional<jsi::String> emulatorHost, double emulatorPort, jsi::String name, jsi::Object data, jsi::Object options, double listenerId) override {
      static_assert(
          bridging::getParameterCount(&T::httpsCallableStream) == 9,
          "Expected httpsCallableStream(...) to have 9 parameters");

      return bridging::callFromJs<void>(
          rt, &T::httpsCallableStream, jsInvoker_, instance_, std::move(appName), std::move(region), std::move(emulatorHost), std::move(emulatorPort), std::move(name), std::move(data), std::move(options), std::move(listenerId));
    }
    void httpsCallableStreamFromUrl(jsi::Runtime &rt, jsi::String appName, jsi::String region, std::optional<jsi::String> emulatorHost, double emulatorPort, jsi::String url, jsi::Object data, jsi::Object options, double listenerId) override {
      static_assert(
          bridging::getParameterCount(&T::httpsCallableStreamFromUrl) == 9,
          "Expected httpsCallableStreamFromUrl(...) to have 9 parameters");

      return bridging::callFromJs<void>(
          rt, &T::httpsCallableStreamFromUrl, jsInvoker_, instance_, std::move(appName), std::move(region), std::move(emulatorHost), std::move(emulatorPort), std::move(url), std::move(data), std::move(options), std::move(listenerId));
    }
    void removeFunctionsStreaming(jsi::Runtime &rt, jsi::String appName, jsi::String region, double listenerId) override {
      static_assert(
          bridging::getParameterCount(&T::removeFunctionsStreaming) == 4,
          "Expected removeFunctionsStreaming(...) to have 4 parameters");

      return bridging::callFromJs<void>(
          rt, &T::removeFunctionsStreaming, jsInvoker_, instance_, std::move(appName), std::move(region), std::move(listenerId));
    }

  private:
    friend class NativeRNFBTurboFunctionsCxxSpec;
    T *instance_;
  };

  Delegate delegate_;
};

} // namespace facebook::react
