///
/// HybridZstdSpec.hpp
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © 2026 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 <NitroModules/ArrayBuffer.hpp>
#include <string>

namespace margelo::nitro::zstd {

  using namespace margelo::nitro;

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

      // Destructor
      ~HybridZstdSpec() override = default;

    public:
      // Properties
      

    public:
      // Methods
      virtual std::shared_ptr<ArrayBuffer> compress(const std::string& data, double compressionLevel) = 0;
      virtual std::string decompress(const std::shared_ptr<ArrayBuffer>& data) = 0;

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

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

} // namespace margelo::nitro::zstd
