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

import NitroModules

/// See ``HybridScreenshotManagerSpec``
public protocol HybridScreenshotManagerSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func enabled(value: Bool) throws -> Void
  func addListener(listener: @escaping () -> Void) throws -> () -> Void
}

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

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

/**
 * A Swift base-protocol representing the ScreenshotManager HybridObject.
 * Implement this protocol to create Swift-based instances of ScreenshotManager.
 * ```swift
 * class HybridScreenshotManager : HybridScreenshotManagerSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridScreenshotManagerSpec = HybridScreenshotManagerSpec_protocol & HybridScreenshotManagerSpec_base
