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

import NitroModules

/// See ``HybridNativeCNKeyDescriptorSpec``
public protocol HybridNativeCNKeyDescriptorSpec_protocol: HybridObject {
  // Properties
  var hash: Double { get }

  // Methods

}

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

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

/**
 * A Swift base-protocol representing the NativeCNKeyDescriptor HybridObject.
 * Implement this protocol to create Swift-based instances of NativeCNKeyDescriptor.
 * ```swift
 * class HybridNativeCNKeyDescriptor : HybridNativeCNKeyDescriptorSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridNativeCNKeyDescriptorSpec = HybridNativeCNKeyDescriptorSpec_protocol & HybridNativeCNKeyDescriptorSpec_base
