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

import NitroModules

/// See ``HybridElectrocardiogramModuleSpec``
public protocol HybridElectrocardiogramModuleSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func queryElectrocardiogramSamples(options: ECGQueryOptionsWithSortOrder) throws -> Promise<[ElectrocardiogramSample]>
  func queryElectrocardiogramSamplesWithAnchor(options: ECGQueryOptionsWithAnchor) throws -> Promise<ElectrocardiogramSamplesWithAnchorResponse>
}

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

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

/**
 * A Swift base-protocol representing the ElectrocardiogramModule HybridObject.
 * Implement this protocol to create Swift-based instances of ElectrocardiogramModule.
 * ```swift
 * class HybridElectrocardiogramModule : HybridElectrocardiogramModuleSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridElectrocardiogramModuleSpec = HybridElectrocardiogramModuleSpec_protocol & HybridElectrocardiogramModuleSpec_base
