type Encoding = "utf8" | "utf-8" | "base64" | "hex"; export declare function createHash(algorithm: string): { update(data: string | Uint8Array): /*elided*/ any; digest: { (): Uint8Array; (encoding: Encoding): string; }; }; /** Decrypts the legacy stored AES-256-CBC format; new data is written with GCM. */ export declare function createDecipheriv(algorithm: string, key: Uint8Array, iv: Uint8Array): { update(data: string, inputEncoding: string, outputEncoding: string): string; final(encoding: string): string; }; export declare function encryptAes256Gcm(key: Uint8Array, iv: Uint8Array, plaintext: Uint8Array, aad?: Uint8Array): { ciphertext: Uint8Array; tag: Uint8Array; }; export declare function decryptAes256Gcm(key: Uint8Array, iv: Uint8Array, ciphertext: Uint8Array, tag: Uint8Array, aad?: Uint8Array): Uint8Array; export {};