import type { Keystore } from '../types'; export declare function bufferFromString(string: string, encoding?: 'utf-8' | 'base64'): Uint8Array; export declare function stringFromBuffer(buffer: Uint8Array, encoding?: 'utf-8' | 'base64'): string; /** * Generate a pbkdf2 key from a password and random salt */ export declare function keyFromPassword(password: string, saltBuffer: Uint8Array): Uint8Array; /** * Encrypts a data object that can be any serializable value using * a provided password. * * @returns Promise object */ export declare function encrypt(password: string, data: T): Promise; /** * Given a password and a keystore object, decrypts the text and returns * the resulting value */ export declare function decrypt(password: string, keystore: Keystore): Promise; //# sourceMappingURL=aes-ctr.d.ts.map