declare module 'react-native-biometrics-auth' { /** * Enum for touch id sensor type */ const TouchID: string; /** * Enum for face id sensor type */ const FaceID: string; /** * Returns promise that resolves to null, TouchID, or FaceID * @returns {Promise} Promise that resolves to null, TouchID, or FaceID */ function isSensorAvailable(): Promise; function hello(): Promise; /** * Prompts user with biometrics dialog using the passed in prompt message and * returns promise that resolves to newly generated public keys * @param {string} promptMessage * @returns {Promise} Promise that resolves to newly generated public key */ function createKeys(promptMessage: string): Promise; /** * Returns promise that resolves to true or false indicating if the keys * were properly deleted * @returns {Promise} Promise that resolves to true or false */ function deleteKeys(): Promise; /** * Prompts user with biometrics dialog using the passed in prompt message and * returns promise that resolves to a cryptographic signature of the payload * @param {string} promptMessage * @param {string} payload * @returns {Promise} Promise that resolves to cryptographic signature */ function createSignature( promptMessage: string, payload: string ): Promise; /** * Prompts user with biometrics dialog using the passed in prompt message and * returns promise that resolves if the user passes, and * rejects if the user fails or cancels * @param {string} promptMessage * @returns {Promise} Promise that resolves if the user passes, and * rejects if the user fails or cancels */ function simplePrompt(promptMessage: string): Promise; }