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

import NitroModules

/// See ``HybridMmfilePlatformContextSpec``
public protocol HybridMmfilePlatformContextSpec_protocol: HybridObject {
  // Properties
  

  // Methods
  func getBaseDirectory() throws -> String
  func getAppGroupDirectory() throws -> String?
}

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

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

/**
 * A Swift base-protocol representing the MmfilePlatformContext HybridObject.
 * Implement this protocol to create Swift-based instances of MmfilePlatformContext.
 * ```swift
 * class HybridMmfilePlatformContext : HybridMmfilePlatformContextSpec {
 *   // ...
 * }
 * ```
 */
public typealias HybridMmfilePlatformContextSpec = HybridMmfilePlatformContextSpec_protocol & HybridMmfilePlatformContextSpec_base
