///
/// NitroChucker-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 `HybridNitroChuckerSpec` to properly resolve imports.
namespace margelo::nitro::nitrochucker { class HybridNitroChuckerSpec; }

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

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

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

  // pragma MARK: std::vector<std::string>
  /**
   * Specialized version of `std::vector<std::string>`.
   */
  using std__vector_std__string_ = std::vector<std::string>;
  inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
    std::vector<std::string> vector;
    vector.reserve(size);
    return vector;
  }
  
  // pragma MARK: std::shared_ptr<HybridNitroChuckerSpec>
  /**
   * Specialized version of `std::shared_ptr<HybridNitroChuckerSpec>`.
   */
  using std__shared_ptr_HybridNitroChuckerSpec_ = std::shared_ptr<HybridNitroChuckerSpec>;
  std::shared_ptr<HybridNitroChuckerSpec> create_std__shared_ptr_HybridNitroChuckerSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
  void* NON_NULL get_std__shared_ptr_HybridNitroChuckerSpec_(std__shared_ptr_HybridNitroChuckerSpec_ cppType);
  
  // pragma MARK: std::weak_ptr<HybridNitroChuckerSpec>
  using std__weak_ptr_HybridNitroChuckerSpec_ = std::weak_ptr<HybridNitroChuckerSpec>;
  inline std__weak_ptr_HybridNitroChuckerSpec_ weakify_std__shared_ptr_HybridNitroChuckerSpec_(const std::shared_ptr<HybridNitroChuckerSpec>& strong) noexcept { return strong; }
  
  // pragma MARK: Result<void>
  using Result_void_ = Result<void>;
  inline Result_void_ create_Result_void_() noexcept {
    return Result<void>::withValue();
  }
  inline Result_void_ create_Result_void_(const std::exception_ptr& error) noexcept {
    return Result<void>::withError(error);
  }

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