export interface ScryptPassParams { password: string; salt: string; dkLen?: number; } export interface EncryptParams { phrase: string; password: string; salt?: string; nonce?: Uint8Array; } export interface EncryptResponse { encryptedPhrase: string; salt: string; } export interface DecryptParams { phrase: string; password: string; salt: string; } export declare const RECOVERY_CODE_NBITS = 160; export declare const RECOVERY_CODE_NWORDS: number; export declare const SALT_BYTES = 32; export declare const NONCE_BYTES: number; export declare const LOCAL_KEY_BYTES: number; export declare const CRYPTO_V1 = 1; export declare const CURRENT_CRYPTO_VERSION = 1; export declare const KEY_LEN: number; /** * Encrypt a phrase using scrypt. * @async * @param {Object} params Params object * @param {string} params.phrase Phrase to be encrypted * @param {string} params.password A password to encrypt the string with. * @param {string} [params.salt] A static salt. Use only for unit tests. * @param {string} [params.nonce] A static nonce. Use only for unit tests. */ export declare function encrypt(params: EncryptParams): Promise; export declare function decrypt(params: DecryptParams): Promise;