///
/// NitroMmfile-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 `HybridMmfilePlatformContextSpec` to properly resolve imports.
namespace margelo::nitro::mmfile { class HybridMmfilePlatformContextSpec; }

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

// Include C++ defined types
#include "HybridMmfilePlatformContextSpec.hpp"
#include <NitroModules/Result.hpp>
#include <exception>
#include <memory>
#include <optional>
#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::mmfile::bridge::swift {

  // pragma MARK: std::optional<std::string>
  /**
   * Specialized version of `std::optional<std::string>`.
   */
  using std__optional_std__string_ = std::optional<std::string>;
  inline std::optional<std::string> create_std__optional_std__string_(const std::string& value) noexcept {
    return std::optional<std::string>(value);
  }
  inline bool has_value_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
    return optional.has_value();
  }
  inline std::string get_std__optional_std__string_(const std::optional<std::string>& optional) noexcept {
    return optional.value();
  }
  
  // pragma MARK: std::shared_ptr<HybridMmfilePlatformContextSpec>
  /**
   * Specialized version of `std::shared_ptr<HybridMmfilePlatformContextSpec>`.
   */
  using std__shared_ptr_HybridMmfilePlatformContextSpec_ = std::shared_ptr<HybridMmfilePlatformContextSpec>;
  std::shared_ptr<HybridMmfilePlatformContextSpec> create_std__shared_ptr_HybridMmfilePlatformContextSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
  void* NON_NULL get_std__shared_ptr_HybridMmfilePlatformContextSpec_(std__shared_ptr_HybridMmfilePlatformContextSpec_ cppType);
  
  // pragma MARK: std::weak_ptr<HybridMmfilePlatformContextSpec>
  using std__weak_ptr_HybridMmfilePlatformContextSpec_ = std::weak_ptr<HybridMmfilePlatformContextSpec>;
  inline std__weak_ptr_HybridMmfilePlatformContextSpec_ weakify_std__shared_ptr_HybridMmfilePlatformContextSpec_(const std::shared_ptr<HybridMmfilePlatformContextSpec>& 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<std::optional<std::string>>
  using Result_std__optional_std__string__ = Result<std::optional<std::string>>;
  inline Result_std__optional_std__string__ create_Result_std__optional_std__string__(const std::optional<std::string>& value) noexcept {
    return Result<std::optional<std::string>>::withValue(value);
  }
  inline Result_std__optional_std__string__ create_Result_std__optional_std__string__(const std::exception_ptr& error) noexcept {
    return Result<std::optional<std::string>>::withError(error);
  }

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