export declare enum BiometryType { NONE = 0, TOUCH_ID = 1, FACE_ID = 2, FINGERPRINT = 3, FACE_AUTHENTICATION = 4, IRIS_AUTHENTICATION = 5, MULTIPLE = 6 } export interface Credentials { username: string; password: string; } export interface IsAvailableOptions { /** * Specifies if should fallback to passcode authentication if biometric authentication is not available. */ useFallback: boolean; } export interface AvailableResult { isAvailable: boolean; biometryType: BiometryType; errorCode?: number; } export interface BiometricOptions { reason?: string; title?: string; subtitle?: string; description?: string; negativeButtonText?: string; useFallback?: boolean; /** * Only for Android. * Set a maximum number of attempts for biometric authentication. The maximum allowed by android is 5. * @default 1 */ maxAttempts?: number; } export interface GetCredentialOptions { server: string; } export interface SetCredentialOptions { username: string; password: string; server: string; } export interface DeleteCredentialOptions { server: string; } export interface NativeBiometricPlugin { isAvailable(options?: IsAvailableOptions): Promise; verifyIdentity(options?: BiometricOptions): Promise; getCredentials(options: GetCredentialOptions): Promise; setCredentials(options: SetCredentialOptions): Promise; deleteCredentials(options: DeleteCredentialOptions): Promise; }