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

import NitroModules

/// See ``HybridTensorFactorySpec``
public protocol HybridTensorFactorySpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func initTensor(modelName: String) throws -> String
  func detectFromBase64(options: TensorFaceOptions) throws -> Variant_NullType__any_HybridFaceSpec_
}

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

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

/**
 * A Swift base-protocol representing the TensorFactory HybridObject.
 * Implement this protocol to create Swift-based instances of TensorFactory.
 * ```swift
 * class HybridTensorFactory : HybridTensorFactorySpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridTensorFactorySpec = HybridTensorFactorySpec_protocol & HybridTensorFactorySpec_base
