///
/// NitroDpiMetric-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 `HybridNitroDpiMetricSpec` to properly resolve imports.
namespace margelo::nitro::dpimetric { class HybridNitroDpiMetricSpec; }

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

// Include C++ defined types
#include "HybridNitroDpiMetricSpec.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::dpimetric::bridge::swift {

  // pragma MARK: std::shared_ptr<HybridNitroDpiMetricSpec>
  /**
   * Specialized version of `std::shared_ptr<HybridNitroDpiMetricSpec>`.
   */
  using std__shared_ptr_HybridNitroDpiMetricSpec_ = std::shared_ptr<HybridNitroDpiMetricSpec>;
  std::shared_ptr<HybridNitroDpiMetricSpec> create_std__shared_ptr_HybridNitroDpiMetricSpec_(void* _Nonnull swiftUnsafePointer) noexcept;
  void* _Nonnull get_std__shared_ptr_HybridNitroDpiMetricSpec_(std__shared_ptr_HybridNitroDpiMetricSpec_ cppType) noexcept;
  
  // pragma MARK: std::weak_ptr<HybridNitroDpiMetricSpec>
  using std__weak_ptr_HybridNitroDpiMetricSpec_ = std::weak_ptr<HybridNitroDpiMetricSpec>;
  inline std__weak_ptr_HybridNitroDpiMetricSpec_ weakify_std__shared_ptr_HybridNitroDpiMetricSpec_(const std::shared_ptr<HybridNitroDpiMetricSpec>& strong) noexcept { return strong; }
  
  // 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);
  }
  
  // pragma MARK: Result<double>
  using Result_double_ = Result<double>;
  inline Result_double_ create_Result_double_(double value) noexcept {
    return Result<double>::withValue(std::move(value));
  }
  inline Result_double_ create_Result_double_(const std::exception_ptr& error) noexcept {
    return Result<double>::withError(error);
  }

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