interface EncryptedPayload { iv: string; salt: string; ciphertext: string; tag: string; } interface EncryptedPayload2FA { iv: string; saltUser: string; saltServer: string; ciphertext: string; tag: string; } export declare function encrypt(text: string, password: string): EncryptedPayload; export declare function decrypt(payload: EncryptedPayload, password: string): string; export declare function encryptWithTwoFactors(plaintext: string, userPassword: string, serverSecret: string): EncryptedPayload2FA; export declare function decryptWithTwoFactors(payload: EncryptedPayload2FA, userPassword: string, serverSecret: string): string; export {};