// Type definitions for react-native-touch-id 4.0.2 // Project: https://github.com/naoufal/react-native-touch-id // Definitions by: huhuanming // Nikolay Polukhin // Jin Shin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'react-native-touch-id' { class TouchIDError { name: 'LAErrorAuthenticationFailed' | 'LAErrorUserCancel' | 'LAErrorUserFallback' | 'LAErrorSystemCancel' | 'LAErrorPasscodeNotSet' | 'LAErrorTouchIDNotAvailable' | 'LAErrorTouchIDNotEnrolled' | 'LAErrorTouchIDNotEnrolled' | 'RCTTouchIDUnknownError' | 'RCTTouchIDNotSupported'; message: string; details: any; } export interface AuthenticateConfig { title?: string; color?: string; fallbackTitle: string; } export const isSupported: () => Promise; export const authenticate: (reason: string, config?: AuthenticateConfig) => Promise; }