/** * convert a 4 element Uint8Array to a 4 byte Number * * @param bytes * @return 4 byte number */ export declare function bytesToWord(bytes?: Uint8Array | number[]): number; /** Encrypt using legacy v1 SJCL (PBKDF2-SHA256 + AES-256-CCM). */ export declare function encrypt(password: string, plaintext: string, options?: { salt?: Buffer; iv?: Buffer; adata?: string; }): string; /** Decrypt a v1 SJCL envelope. */ export declare function decrypt(password: string, ciphertext: string): string; /** * Auto-detect v1 (SJCL) or v2 (Argon2id + AES-256-GCM) from the envelope `v` field and decrypt. * * Migration path from sync `decrypt()`. Move call sites to `decryptAsync()` before * the breaking release that flips the default to v2. */ export declare function decryptAsync(password: string, ciphertext: string): Promise; //# sourceMappingURL=encrypt.d.ts.map