declare type Payload = { data: string; iv: string; salt?: string; }; export declare class Encryptor { static create(): Encryptor; encrypt(password: string, data: T): Promise; decrypt(password: string, text: string | Payload): Promise; private encryptWithKey; private decryptWithKey; private keyFromPassword; private serializeBufferFromStorage; private serializeBufferForStorage; private unprefixedHex; private generateSalt; } export {};