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

import NitroModules

/// See ``HybridNitroGoogleSigninSpec``
public protocol HybridNitroGoogleSigninSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func configure(params: OneTapConfigureParams) throws -> Void
  func checkPlayServices(showErrorResolutionDialog: Bool?) throws -> Promise<Void>
  func signIn() throws -> Promise<OneTapResponse>
  func createAccount() throws -> Promise<OneTapResponse>
  func presentExplicitSignIn() throws -> Promise<OneTapResponse>
  func requestScopes(scopes: [String]) throws -> Promise<OneTapAuthorizationResult>
  func getCurrentUser() throws -> Variant_NullType_OneTapSuccessData
  func getTokens() throws -> Promise<GetTokensResponse>
  func clearCachedAccessToken(accessTokenString: String) throws -> Promise<Void>
  func signOut() throws -> Promise<Void>
  func revokeAccess(emailOrUniqueId: String) throws -> Promise<Void>
}

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

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

/**
 * A Swift base-protocol representing the NitroGoogleSignin HybridObject.
 * Implement this protocol to create Swift-based instances of NitroGoogleSignin.
 * ```swift
 * class HybridNitroGoogleSignin : HybridNitroGoogleSigninSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridNitroGoogleSigninSpec = HybridNitroGoogleSigninSpec_protocol & HybridNitroGoogleSigninSpec_base
