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

import NitroModules

/// See ``HybridOneDocumentPickerSpec``
public protocol HybridOneDocumentPickerSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func getDocument(options: ResolvedDocumentPickerOptions) throws -> Promise<DocumentPickerNativeResult>
}

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

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

/**
 * A Swift base-protocol representing the OneDocumentPicker HybridObject.
 * Implement this protocol to create Swift-based instances of OneDocumentPicker.
 * ```swift
 * class HybridOneDocumentPicker : HybridOneDocumentPickerSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridOneDocumentPickerSpec = HybridOneDocumentPickerSpec_protocol & HybridOneDocumentPickerSpec_base
