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

import NitroModules

/// See ``HybridReactNativeSecureKeySpec``
public protocol HybridReactNativeSecureKeySpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func generateKeyPair(alias: String) throws -> String
  func getKey(alias: String) throws -> String
  func isKeyExist(alias: String) throws -> Bool
  func deleteSecureKey(alias: String) throws -> Bool
  func sign(alias: String, message: String) throws -> String
  func verify(alias: String, signature: String, message: String) throws -> Bool
}

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

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

/**
 * A Swift base-protocol representing the ReactNativeSecureKey HybridObject.
 * Implement this protocol to create Swift-based instances of ReactNativeSecureKey.
 * ```swift
 * class HybridReactNativeSecureKey : HybridReactNativeSecureKeySpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridReactNativeSecureKeySpec = HybridReactNativeSecureKeySpec_protocol & HybridReactNativeSecureKeySpec_base
