/** * 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 `plaintext` with `password`. Defaults to v2 (Argon2id + AES-256-GCM). * * Pass `encryptionVersion: 1` to produce a legacy v1 (SJCL) envelope; this is the * only supported way to request v1 encryption. */ export declare function encrypt(password: string, plaintext: string, options?: { salt?: Buffer; iv?: Buffer; adata?: string; encryptionVersion?: 1 | 2; }): Promise; /** * Auto-detect v1 (SJCL) or v2 (Argon2id + AES-256-GCM) from the envelope `v` field and decrypt. */ export declare function decrypt(password: string, ciphertext: string): Promise; //# sourceMappingURL=encrypt.d.ts.map