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

import NitroModules

/// See ``HybridNativeLinearListLayoutSpec``
public protocol HybridNativeLinearListLayoutSpec_protocol: HybridObject, HybridNativeListLayoutSpec_protocol {
  // Properties
  

  // Methods
  func setConfig(config: NativeLinearListLayoutConfig) throws -> Void
}

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

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

/**
 * A Swift base-protocol representing the NativeLinearListLayout HybridObject.
 * Implement this protocol to create Swift-based instances of NativeLinearListLayout.
 * ```swift
 * class HybridNativeLinearListLayout : HybridNativeLinearListLayoutSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridNativeLinearListLayoutSpec = HybridNativeLinearListLayoutSpec_protocol & HybridNativeLinearListLayoutSpec_base
