export interface EncryptedData { iv: Uint8Array; data: ArrayBuffer; } export interface AESEncryptorI { encryptBinary(data: Uint8Array | ArrayBuffer): Promise; decryptBinary(iv: Uint8Array | ArrayBuffer, data: Uint8Array | ArrayBuffer): Promise; getAlgorithm(): AesKeyAlgorithm; } export declare function AESEncryptor(key: CryptoKey): AESEncryptorI; export declare namespace AESEncryptor { var getDefaultAlgorithm: () => AesKeyAlgorithm; var generateKey: () => Promise; }