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

import NitroModules

/// See ``HybridOneAppIntentsSpec``
public protocol HybridOneAppIntentsSpec_protocol: HybridObject {
  // Properties


  // Methods
  func addInvocationListener(identifier: String, listener: @escaping (_ invocation: AppIntentInvocation) -> Void) throws -> () -> Void
  func claimPending(identifier: String) throws -> [AppIntentInvocation]
  func complete(executionId: String, success: Bool, output: String) throws -> Void
}

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

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

/**
 * A Swift base-protocol representing the OneAppIntents HybridObject.
 * Implement this protocol to create Swift-based instances of OneAppIntents.
 * ```swift
 * class HybridOneAppIntents : HybridOneAppIntentsSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridOneAppIntentsSpec = HybridOneAppIntentsSpec_protocol & HybridOneAppIntentsSpec_base
