import { NativeModules } from "react-native" ; export interface CryptoBridgeInterface { decryptText ( encryptedText , key , ivHex , salt , hmacHexKey , hmacHex ) : Promise < string > ; deriveKeyFromPassword ( password , salt , rounds , bits ) : Promise < string > ; encryptText ( text , key , salt , iv , hmacHexKey ) : Promise < string > ; generateIV ( ) : Promise < string > ; generateSaltWithLength ( length ) : Promise < string > ; } const { CryptoBridge } = NativeModules as { CryptoBridge : CryptoBridgeInterface ; } ; export { CryptoBridge } ;