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

#pragma once

#if __has_include(<NitroModules/HybridObject.hpp>)
#include <NitroModules/HybridObject.hpp>
#else
#error NitroModules cannot be found! Are you sure you installed NitroModules properly?
#endif



#include <string>
#include <NitroModules/ArrayBuffer.hpp>

namespace margelo::nitro::image {

  using namespace margelo::nitro;

  /**
   * An abstract base class for `ImageUtils`
   * Inherit this class to create instances of `HybridImageUtilsSpec` in C++.
   * You must explicitly call `HybridObject`'s constructor yourself, because it is virtual.
   * @example
   * ```cpp
   * class HybridImageUtils: public HybridImageUtilsSpec {
   * public:
   *   HybridImageUtils(...): HybridObject(TAG) { ... }
   *   // ...
   * };
   * ```
   */
  class HybridImageUtilsSpec: public virtual HybridObject {
    public:
      // Constructor
      explicit HybridImageUtilsSpec(): HybridObject(TAG) { }

      // Destructor
      ~HybridImageUtilsSpec() override = default;

    public:
      // Properties
      virtual bool getSupportsHeicLoading() = 0;
      virtual bool getSupportsHeicWriting() = 0;

    public:
      // Methods
      virtual std::string thumbHashToBase64String(const std::shared_ptr<ArrayBuffer>& thumbhash) = 0;
      virtual std::shared_ptr<ArrayBuffer> thumbhashFromBase64String(const std::string& thumbhashBase64) = 0;

    protected:
      // Hybrid Setup
      void loadHybridMethods() override;

    protected:
      // Tag for logging
      static constexpr auto TAG = "ImageUtils";
  };

} // namespace margelo::nitro::image
