///
/// ReactNativeSecureKey-Swift-Cxx-Bridge.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

#pragma once

// Forward declarations of C++ defined types
// Forward declaration of `HybridReactNativeSecureKeySpec` to properly resolve imports.
namespace margelo::nitro::silencelaboratories_reactnativesecurekey { class HybridReactNativeSecureKeySpec; }

// Forward declarations of Swift defined types
// Forward declaration of `HybridReactNativeSecureKeySpec_cxx` to properly resolve imports.
namespace ReactNativeSecureKey { class HybridReactNativeSecureKeySpec_cxx; }

// Include C++ defined types
#include "HybridReactNativeSecureKeySpec.hpp"
#include <NitroModules/Result.hpp>
#include <exception>
#include <memory>
#include <string>

/**
 * Contains specialized versions of C++ templated types so they can be accessed from Swift,
 * as well as helper functions to interact with those C++ types from Swift.
 */
namespace margelo::nitro::silencelaboratories_reactnativesecurekey::bridge::swift {

  // pragma MARK: std::shared_ptr<HybridReactNativeSecureKeySpec>
  /**
   * Specialized version of `std::shared_ptr<HybridReactNativeSecureKeySpec>`.
   */
  using std__shared_ptr_HybridReactNativeSecureKeySpec_ = std::shared_ptr<HybridReactNativeSecureKeySpec>;
  std::shared_ptr<HybridReactNativeSecureKeySpec> create_std__shared_ptr_HybridReactNativeSecureKeySpec_(void* NON_NULL swiftUnsafePointer) noexcept;
  void* NON_NULL get_std__shared_ptr_HybridReactNativeSecureKeySpec_(std__shared_ptr_HybridReactNativeSecureKeySpec_ cppType);
  
  // pragma MARK: std::weak_ptr<HybridReactNativeSecureKeySpec>
  using std__weak_ptr_HybridReactNativeSecureKeySpec_ = std::weak_ptr<HybridReactNativeSecureKeySpec>;
  inline std__weak_ptr_HybridReactNativeSecureKeySpec_ weakify_std__shared_ptr_HybridReactNativeSecureKeySpec_(const std::shared_ptr<HybridReactNativeSecureKeySpec>& strong) noexcept { return strong; }
  
  // pragma MARK: Result<std::string>
  using Result_std__string_ = Result<std::string>;
  inline Result_std__string_ create_Result_std__string_(const std::string& value) noexcept {
    return Result<std::string>::withValue(value);
  }
  inline Result_std__string_ create_Result_std__string_(const std::exception_ptr& error) noexcept {
    return Result<std::string>::withError(error);
  }
  
  // pragma MARK: Result<bool>
  using Result_bool_ = Result<bool>;
  inline Result_bool_ create_Result_bool_(bool value) noexcept {
    return Result<bool>::withValue(std::move(value));
  }
  inline Result_bool_ create_Result_bool_(const std::exception_ptr& error) noexcept {
    return Result<bool>::withError(error);
  }

} // namespace margelo::nitro::silencelaboratories_reactnativesecurekey::bridge::swift
