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

import NitroModules

/// See ``HybridNitroGoogleSsoSpec``
public protocol HybridNitroGoogleSsoSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func configure(config: NitroGoogleSSOConfig) throws -> Void
  func signIn() throws -> Promise<Variant_NullType_NitroGoogleUserInfo>
  func oneTapSignIn() throws -> Promise<Variant_NullType_NitroGoogleUserInfo>
  func signOut() throws -> Promise<Void>
  func getCurrentUser() throws -> Promise<Variant_NullType_NitroGoogleUserInfo>
}

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

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

/**
 * A Swift base-protocol representing the NitroGoogleSso HybridObject.
 * Implement this protocol to create Swift-based instances of NitroGoogleSso.
 * ```swift
 * class HybridNitroGoogleSso : HybridNitroGoogleSsoSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridNitroGoogleSsoSpec = HybridNitroGoogleSsoSpec_protocol & HybridNitroGoogleSsoSpec_base
