import { NativeModules } from 'react-native'; export type EncryptedData = { iv: string; tag: string; content: string; }; type AesGcmCryptoType = { decrypt( base64Ciphertext: string, key: string, iv: string, tag: string, isBinary: boolean ): Promise; decryptFile( inputFilePath: string, outputFilePath: string, key: string, iv: string, tag: string ): Promise; encrypt( plainText: string, inBinary: boolean, key: string ): Promise; encryptFile( inputFilePath: string, outputFilePath: string, key: string ): Promise<{ iv: string; tag: string; }>; }; const { AesGcmCrypto } = NativeModules; export default AesGcmCrypto as AesGcmCryptoType;