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

import NitroModules

/// See ``HybridImageUtilsSpec``
public protocol HybridImageUtilsSpec_protocol: HybridObject {
  // Properties
  var supportsHeicLoading: Bool { get }
  var supportsHeicWriting: Bool { get }

  // Methods
  func thumbHashToBase64String(thumbhash: ArrayBuffer) throws -> String
  func thumbhashFromBase64String(thumbhashBase64: String) throws -> ArrayBuffer
}

public extension HybridImageUtilsSpec_protocol {
  /// Default implementation of ``HybridObject.toString``
  func toString() -> String {
    return "[HybridObject ImageUtils]"
  }
}

/// See ``HybridImageUtilsSpec``
open class HybridImageUtilsSpec_base {
  private weak var cxxWrapper: HybridImageUtilsSpec_cxx? = nil
  public init() { }
  public func getCxxWrapper() -> HybridImageUtilsSpec_cxx {
  #if DEBUG
    guard self is any HybridImageUtilsSpec else {
      fatalError("`self` is not a `HybridImageUtilsSpec`! Did you accidentally inherit from `HybridImageUtilsSpec_base` instead of `HybridImageUtilsSpec`?")
    }
  #endif
    if let cxxWrapper = self.cxxWrapper {
      return cxxWrapper
    } else {
      let cxxWrapper = HybridImageUtilsSpec_cxx(self as! any HybridImageUtilsSpec)
      self.cxxWrapper = cxxWrapper
      return cxxWrapper
    }
  }
}

/**
 * A Swift base-protocol representing the ImageUtils HybridObject.
 * Implement this protocol to create Swift-based instances of ImageUtils.
 * ```swift
 * class HybridImageUtils : HybridImageUtilsSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridImageUtilsSpec = HybridImageUtilsSpec_protocol & HybridImageUtilsSpec_base
