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

import Foundation
import NitroModules

/// See ``HybridVideoViewViewManagerSpec``
public protocol HybridVideoViewViewManagerSpec_protocol: HybridObject {
  // Properties
  var player: (any HybridVideoPlayerSpec)? { get set }
  var controls: Bool { get set }
  var pictureInPicture: Bool { get set }
  var autoEnterPictureInPicture: Bool { get set }
  var resizeMode: ResizeMode { get set }
  var keepScreenAwake: Bool { get set }
  var onPictureInPictureChange: ((_ isInPictureInPicture: Bool) -> Void)? { get set }
  var onFullscreenChange: ((_ fullscreen: Bool) -> Void)? { get set }
  var willEnterFullscreen: (() -> Void)? { get set }
  var willExitFullscreen: (() -> Void)? { get set }
  var willEnterPictureInPicture: (() -> Void)? { get set }
  var willExitPictureInPicture: (() -> Void)? { get set }

  // Methods
  func enterFullscreen() throws -> Void
  func exitFullscreen() throws -> Void
  func enterPictureInPicture() throws -> Void
  func exitPictureInPicture() throws -> Void
  func canEnterPictureInPicture() throws -> Bool
}

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

/**
 * A Swift base-protocol representing the VideoViewViewManager HybridObject.
 * Implement this protocol to create Swift-based instances of VideoViewViewManager.
 * ```swift
 * class HybridVideoViewViewManager : HybridVideoViewViewManagerSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridVideoViewViewManagerSpec = HybridVideoViewViewManagerSpec_protocol & HybridVideoViewViewManagerSpec_base
