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

import VisionCamera
import NitroModules

/// See ``HybridFaceDetectorFactorySpec``
public protocol HybridFaceDetectorFactorySpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func createFaceDetector(options: FaceDetectorOptions) throws -> (any HybridFaceDetectorSpec)
  func createFaceDetectorOutput(options: FaceDetectorOutputOptions) throws -> (any HybridCameraOutputSpec)
}

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

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

/**
 * A Swift base-protocol representing the FaceDetectorFactory HybridObject.
 * Implement this protocol to create Swift-based instances of FaceDetectorFactory.
 * ```swift
 * class HybridFaceDetectorFactory : HybridFaceDetectorFactorySpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridFaceDetectorFactorySpec = HybridFaceDetectorFactorySpec_protocol & HybridFaceDetectorFactorySpec_base
