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

import NitroModules

/// See ``HybridOneQuickActionsSpec``
public protocol HybridOneQuickActionsSpec_protocol: HybridObject {
  // Properties


  // Methods
  func setItems(items: [QuickActionItem]) throws -> Promise<Void>
  func getItems() throws -> Promise<[QuickActionItem]>
  func getInitialAction() throws -> String?
  func clearInitialAction() throws -> Void
  func addListener(listener: @escaping (_ value: String) -> Void) throws -> () -> Void
}

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

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

/**
 * A Swift base-protocol representing the OneQuickActions HybridObject.
 * Implement this protocol to create Swift-based instances of OneQuickActions.
 * ```swift
 * class HybridOneQuickActions : HybridOneQuickActionsSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridOneQuickActionsSpec = HybridOneQuickActionsSpec_protocol & HybridOneQuickActionsSpec_base
