export enum ERROR_CODES { PASSWORD_FALLBACK_SELECTED = - 3 , DEVELOPER_ERROR = 10 , NOT_AVAILABLE = 20 , NOT_CONFIGURED = 30 , NOT_RECOGNIZED = 40 , RECOVERABLE_ERROR = 50 , USER_CANCELLED = 60 , UNEXPECTED_ERROR = 70 } export interface VerifyFingerprintOptions { /**
     * The optional title in the fingerprint page for android.
     * Default: whatever the device default is ('Confirm your password' is likely)
     */ title ? : string ; /**
     * The optional message in the fingerprint dialog on ios and page description on android.
     * Default: 'Scan your finger' on iOS and the device default on Android (which is likely 'Enter your device password to continue').
     */ message ? : string ; /**
     * Default 5 (seconds). Can be 0  to always trigger auth.
     * Android only.
     */ authenticationValidityDuration ? : number ; /**
     * On Android you can either use our fancy proprietary UI or the stock UI Android ships with.
     * Default false (so use the default UI).
     * Android only.
     */ useCustomAndroidUI ? : boolean ; } export interface VerifyFingerprintWithCustomFallbackOptions { /**
     * The optional message in the fingerprint dialog.
     * Default: 'Scan your finger'.
     */ message ? : string ; /**
     * The optional button label when scanning the fingerprint fails.
     * Default: 'Enter password'.
     */ fallbackMessage ? : string ; /**
     * Default 5 (seconds). Can be 0  to always trigger auth.
     * Android only.
     */ authenticationValidityDuration ? : number ; } export interface BiometricIDAvailableResult { any : boolean ; touch ? : boolean ; face ? : boolean ; } export interface FingerprintAuthApi { available ( ) : Promise < BiometricIDAvailableResult > ; didFingerprintDatabaseChange ( ) : Promise < boolean > ; /**
     * This (recommended) method uses keychain instead of localauth so the passcode fallback can be used.
     * On Android, when 'useCustomAndroidUI' is set to 'true', and the user opted for manually entering the password,
     * this method may return a string (the entered password) for you to compare to the actual password.
     */ verifyFingerprint ( options ) : Promise < void | string > ; /**
     * This implementation uses LocalAuthentication and has no built-in passcode fallback on iOS.
     * On Android this is exactly the same as 'verifyFingerprint'
     */ verifyFingerprintWithCustomFallback ( options ) : Promise < void > ; close ( ) : void ; }