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

#pragma once

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

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

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

/**
 * 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::haptics::bridge::swift {

  // pragma MARK: std::shared_ptr<margelo::nitro::haptics::HybridHapticsSpec>
  /**
   * Specialized version of `std::shared_ptr<margelo::nitro::haptics::HybridHapticsSpec>`.
   */
  using std__shared_ptr_margelo__nitro__haptics__HybridHapticsSpec_ = std::shared_ptr<margelo::nitro::haptics::HybridHapticsSpec>;
  std::shared_ptr<margelo::nitro::haptics::HybridHapticsSpec> create_std__shared_ptr_margelo__nitro__haptics__HybridHapticsSpec_(void* _Nonnull swiftUnsafePointer);
  void* _Nonnull get_std__shared_ptr_margelo__nitro__haptics__HybridHapticsSpec_(std__shared_ptr_margelo__nitro__haptics__HybridHapticsSpec_ cppType);
  
  // pragma MARK: std::weak_ptr<margelo::nitro::haptics::HybridHapticsSpec>
  using std__weak_ptr_margelo__nitro__haptics__HybridHapticsSpec_ = std::weak_ptr<margelo::nitro::haptics::HybridHapticsSpec>;
  inline std__weak_ptr_margelo__nitro__haptics__HybridHapticsSpec_ weakify_std__shared_ptr_margelo__nitro__haptics__HybridHapticsSpec_(const std::shared_ptr<margelo::nitro::haptics::HybridHapticsSpec>& strong) { return strong; }
  
  // pragma MARK: Result<void>
  using Result_void_ = Result<void>;
  inline Result_void_ create_Result_void_() {
    return Result<void>::withValue();
  }
  inline Result_void_ create_Result_void_(const std::exception_ptr& error) {
    return Result<void>::withError(error);
  }

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