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

import NitroModules

/// See ``HybridNativeCNContactStoreSpec``
public protocol HybridNativeCNContactStoreSpec_protocol: HybridObject {
  // Properties


  // Methods
  func unifiedContact(withIdentifier: String, keys: [String], descriptors: [(any HybridNativeCNKeyDescriptorSpec)]) throws -> Promise<(any HybridNativeCNContactSpec)>
}

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

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

/**
 * A Swift base-protocol representing the NativeCNContactStore HybridObject.
 * Implement this protocol to create Swift-based instances of NativeCNContactStore.
 * ```swift
 * class HybridNativeCNContactStore : HybridNativeCNContactStoreSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridNativeCNContactStoreSpec = HybridNativeCNContactStoreSpec_protocol & HybridNativeCNContactStoreSpec_base
