/// import { Stream } from 'stream'; import { PrivacyStrategy } from './privacy'; /** * The privacy strategy that secures data using the NEM keys (a private key and a public key). * This strategy encrypt and decrypt the data using both private and public keys */ export declare class NemPrivacyStrategy implements PrivacyStrategy { readonly privateKey: string; readonly publicKey: string; /** * Create instance of this strategy * @param privateKey the private key * @param publicKey the public key * @return the instance of this strategy */ static create(privateKey: string, publicKey: string): NemPrivacyStrategy; protected constructor(privateKey: string, publicKey: string); /** * Get the privacy type which is set as NEMKEYS * @return the privacy type's int value * @see PrivacyType */ getPrivacyType(): number; /** * Encrypt byte stream using the private and public keys provided * @param stream the byte stream to encrypt * @return the encrypted byte stream */ encrypt(stream: Stream): Stream; /** * Encrypt byte stream using the private and public keys provided * @param encryptedStream the byte stream to decrypt * @return the decrypted byte stream */ decrypt(encryptedStream: Stream): Stream; }