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

import Foundation
import NitroModules

/// See ``HybridAcousticConnectRNSpec``
public protocol HybridAcousticConnectRNSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func setBooleanConfigItemForKey(key: String, value: Bool, moduleName: String) throws -> Bool
  func setStringItemForKey(key: String, value: String, moduleName: String) throws -> Bool
  func setNumberItemForKey(key: String, value: Double, moduleName: String) throws -> Bool
  func setConfigItemForKey(key: String, value: Variant_String_Double_Bool, moduleName: String) throws -> Bool
  func getBooleanConfigItemForKey(theDefault: Bool, key: String, moduleName: String) throws -> Bool
  func getStringItemForKey(theDefault: String, key: String, moduleName: String) throws -> String?
  func getNumberItemForKey(theDefault: Double, key: String, moduleName: String) throws -> Double
  func logCustomEvent(eventName: String, values: Dictionary<String, Variant_String_Double_Bool>, level: Double) throws -> Bool
  func logSignal(values: Dictionary<String, Variant_String_Double_Bool>, level: Double) throws -> Bool
  func logExceptionEvent(message: String, stackInfo: String, unhandled: Bool) throws -> Bool
  func logLocation() throws -> Bool
  func logLocationWithLatitudeLongitude(latitude: Double, longitude: Double, level: Double) throws -> Bool
  func logClickEvent(target: Double, controlId: String) throws -> Bool
  func logTextChangeEvent(target: Double, controlId: String, text: String?) throws -> Bool
  func setCurrentScreenName(logicalPageName: String) throws -> Bool
  func logScreenViewContextLoad(logicalPageName: String?, referrer: String?) throws -> Bool
  func logScreenViewContextUnload(logicalPageName: String?, referrer: String?) throws -> Bool
  func logScreenLayout(name: String, delay: Double) throws -> Bool
}

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

/**
 * A Swift base-protocol representing the AcousticConnectRN HybridObject.
 * Implement this protocol to create Swift-based instances of AcousticConnectRN.
 * ```swift
 * class HybridAcousticConnectRN : HybridAcousticConnectRNSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridAcousticConnectRNSpec = HybridAcousticConnectRNSpec_protocol & HybridAcousticConnectRNSpec_base
