/**
 * 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.
 */

#ifndef __cplusplus
#error This file must be compiled as Obj-C++. If you are importing it, you must change your file extension to .mm.
#endif

// Avoid multiple includes of RNSplashViewSpec symbols
#ifndef RNSplashViewSpec_H
#define RNSplashViewSpec_H

#import <Foundation/Foundation.h>
#import <RCTRequired/RCTRequired.h>
#import <RCTTypeSafety/RCTConvertHelpers.h>
#import <RCTTypeSafety/RCTTypedModuleConstants.h>
#import <React/RCTBridgeModule.h>
#import <React/RCTCxxConvert.h>
#import <React/RCTManagedPointer.h>
#import <ReactCommon/RCTTurboModule.h>
#import <optional>
#import <vector>


NS_ASSUME_NONNULL_BEGIN
namespace JS {
  namespace NativeSplashView {
    struct SplashOptions {
      NSString *lottie() const;
      std::optional<double> duration() const;
      NSString *backgroundColor() const;

      SplashOptions(NSDictionary *const v) : _v(v) {}
    private:
      NSDictionary *_v;
    };
  }
}

@interface RCTCxxConvert (NativeSplashView_SplashOptions)
+ (RCTManagedPointer *)JS_NativeSplashView_SplashOptions:(id)json;
@end
@protocol NativeSplashViewSpec <RCTBridgeModule, RCTTurboModule>

- (void)showSplash:(JS::NativeSplashView::SplashOptions &)options;
- (void)hideSplash;

@end

@interface NativeSplashViewSpecBase : NSObject {
@protected
facebook::react::EventEmitterCallback _eventEmitterCallback;
}
- (void)setEventEmitterCallback:(EventEmitterCallbackWrapper *)eventEmitterCallbackWrapper;


@end

namespace facebook::react {
  /**
   * ObjC++ class for module 'NativeSplashView'
   */
  class JSI_EXPORT NativeSplashViewSpecJSI : public ObjCTurboModule {
  public:
    NativeSplashViewSpecJSI(const ObjCTurboModule::InitParams &params);
  };
} // namespace facebook::react
inline NSString *JS::NativeSplashView::SplashOptions::lottie() const
{
  id const p = _v[@"lottie"];
  return RCTBridgingToOptionalString(p);
}
inline std::optional<double> JS::NativeSplashView::SplashOptions::duration() const
{
  id const p = _v[@"duration"];
  return RCTBridgingToOptionalDouble(p);
}
inline NSString *JS::NativeSplashView::SplashOptions::backgroundColor() const
{
  id const p = _v[@"backgroundColor"];
  return RCTBridgingToOptionalString(p);
}
NS_ASSUME_NONNULL_END
#endif // RNSplashViewSpec_H
