#import <Foundation/Foundation.h>
#import <Capacitor/Capacitor.h>

// 2.3.0 security overhaul — every @objc method on BiometricAuthPlugin.swift is
// registered here. `logout` was added so the JS-facing API surface (which exposes
// logout / deleteCredentials) is fully backed by native implementations.
// NOTE: the Swift plugin does not implement getState()/subscribe()/hasCredentials()
// — those are handled entirely in the JS layer (CapacitorAdapter falls back to
// isAvailable() when hasCredentials is absent), so they are intentionally not
// registered here.
CAP_PLUGIN(BiometricAuthPlugin, "BiometricAuth",
    CAP_PLUGIN_METHOD(isAvailable, CAPPluginReturnPromise);
    CAP_PLUGIN_METHOD(getSupportedBiometrics, CAPPluginReturnPromise);
    CAP_PLUGIN_METHOD(authenticate, CAPPluginReturnPromise);
    CAP_PLUGIN_METHOD(register, CAPPluginReturnPromise);
    CAP_PLUGIN_METHOD(deleteCredentials, CAPPluginReturnPromise);
    CAP_PLUGIN_METHOD(logout, CAPPluginReturnPromise);
    CAP_PLUGIN_METHOD(configure, CAPPluginReturnPromise);
)