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

import Foundation
import NitroModules

/// See ``HybridNitroVtoViewSpec``
public protocol HybridNitroVtoViewSpec_protocol: HybridObject, HybridView {
  // Properties
  var modelUrl: String { get set }
  var isActive: Bool { get set }
  var onModelLoaded: ((_ modelUrl: String) -> Void)? { get set }
  var onFaceTracked: (() -> Void)? { get set }
  var onGlassesDisplayed: ((_ modelUrl: String) -> Void)? { get set }
  var forwardOffset: Double? { get set }
  var debug: Bool? { get set }
  var showNativeFPS: Bool? { get set }
  var isClipOn: Bool { get set }

  // Methods
  func hideGlasses() throws -> Void
  func showGlasses() throws -> Void
}

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

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

/**
 * A Swift base-protocol representing the NitroVtoView HybridObject.
 * Implement this protocol to create Swift-based instances of NitroVtoView.
 * ```swift
 * class HybridNitroVtoView : HybridNitroVtoViewSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridNitroVtoViewSpec = HybridNitroVtoViewSpec_protocol & HybridNitroVtoViewSpec_base
