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

import NitroModules

/// See ``HybridNativeBleNitroFactorySpec``
public protocol HybridNativeBleNitroFactorySpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func create(nativeRestoreStateIdentifier: String?, restoreStateCallback: ((_ peripherals: [BLEDevice]) -> Void)?) throws -> (any HybridNativeBleNitroSpec)
}

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

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

/**
 * A Swift base-protocol representing the NativeBleNitroFactory HybridObject.
 * Implement this protocol to create Swift-based instances of NativeBleNitroFactory.
 * ```swift
 * class HybridNativeBleNitroFactory : HybridNativeBleNitroFactorySpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridNativeBleNitroFactorySpec = HybridNativeBleNitroFactorySpec_protocol & HybridNativeBleNitroFactorySpec_base
