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

import NitroImage
import NitroModules

/// See ``HybridFrameConverterSpec``
public protocol HybridFrameConverterSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func convertFrameToImage(frame: (any HybridFrameSpec)) throws -> (any HybridImageSpec)
  func convertFrameToImageAsync(frame: (any HybridFrameSpec)) throws -> Promise<(any HybridImageSpec)>
  func convertDepthToImage(depth: (any HybridDepthSpec)) throws -> (any HybridImageSpec)
  func convertDepthToImageAsync(depth: (any HybridDepthSpec)) throws -> Promise<(any HybridImageSpec)>
}

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

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

/**
 * A Swift base-protocol representing the FrameConverter HybridObject.
 * Implement this protocol to create Swift-based instances of FrameConverter.
 * ```swift
 * class HybridFrameConverter : HybridFrameConverterSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridFrameConverterSpec = HybridFrameConverterSpec_protocol & HybridFrameConverterSpec_base
