import ExpoModulesCore

public class ExpoOtpAutofillConsentModule: Module {
  // Each module class must implement the definition function. The definition consists of components
  // that describes the module's functionality and behavior.
  // See https://docs.expo.dev/modules/module-api for more details about available components.
  public func definition() -> ModuleDefinition {
    Name("ExpoOtpAutofillConsent")

    Events("onSmsReceived", "onSmsTimeout")

    AsyncFunction("startSmsUserConsentAsync") { (senderPhoneNumber: String?) in
      // iOS handles OTP autofill natively via the system keyboard.
      // This is a no-op for parity with Android.
    }

    Function("removeSmsListener") {
      // No-op on iOS.
    }
  }

}
