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

import NitroModules

/// See ``HybridOneStoreReviewSpec``
public protocol HybridOneStoreReviewSpec_protocol: HybridObject {
  // Properties


  // Methods
  func requestReview() throws -> Promise<Void>
}

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

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

/**
 * A Swift base-protocol representing the OneStoreReview HybridObject.
 * Implement this protocol to create Swift-based instances of OneStoreReview.
 * ```swift
 * class HybridOneStoreReview : HybridOneStoreReviewSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridOneStoreReviewSpec = HybridOneStoreReviewSpec_protocol & HybridOneStoreReviewSpec_base
