/// import { Stream } from 'stream'; import { PrivacyStrategy } from './privacy'; /** * The privacy strategy that secures the data using a long password, 50 characters minimum. */ export declare class PasswordPrivacyStrategy implements PrivacyStrategy { readonly password: string; static readonly MinPasswordLength = 10; /** * Create instance of this strategy * @param password the password * @return the instance of this strategy */ static create(password: string): PasswordPrivacyStrategy; private constructor(); /** * Get the privacy type which is set as PASSWORD * @return the privacy type's int value * @see PrivacyType */ getPrivacyType(): number; /** * Encrypt byte stream with password * @param stream the byte stream to encrypt * @return the encrypted byte stream */ encrypt(stream: Stream): Stream; /** * Decrypt byte stream with password * @param encryptedStream the byte stream to decrypt * @return the decrypted byte stream */ decrypt(encryptedStream: Stream): Stream; }