import { PrivacyStrategy } from '../privacy/privacy'; import { DirectDownloadParameterBuilder } from './direct-download-parameter-builder'; /** * This model class is the input parameter of direct download. */ export declare class DirectDownloadParameter { /** * The privacy strategy */ readonly privacyStrategy: PrivacyStrategy; /** * Determines to validate digest */ readonly validateDigest: boolean; /** * The transaction hash */ readonly transactionHash?: string | undefined; /** * The sender or recipient account private key to download secure message of a transaction (if downloading by transaction hash) */ readonly accountPrivateKey?: string | undefined; /** * The data hash */ readonly dataHash?: string | undefined; /** * The digest for the data (if downloading by data hash) */ readonly digest?: string | undefined; /** * Start creating instance of this class from transaction hash, account private key and validate digest flag using DirectDownloadParameterBuilder * @param transactionHash the transaction hash of target download * @param accountPrivateKey the account private key * @param validateDigest the validate digest flag as to whether to verify data with digest * @return the direct download parameter builder */ static createFromTransactionHash(transactionHash: string, accountPrivateKey?: string, validateDigest?: boolean): DirectDownloadParameterBuilder; /** * Start creating instance of this class from data hash and digest using DirectDownloadParameterBuilder * @param dataHash the data hash to download * @param digest the digest to verify download * @return the direct download parameter builder */ static createFromDataHash(dataHash: string, digest?: string): DirectDownloadParameterBuilder; constructor( /** * The privacy strategy */ privacyStrategy: PrivacyStrategy, /** * Determines to validate digest */ validateDigest: boolean, /** * The transaction hash */ transactionHash?: string | undefined, /** * The sender or recipient account private key to download secure message of a transaction (if downloading by transaction hash) */ accountPrivateKey?: string | undefined, /** * The data hash */ dataHash?: string | undefined, /** * The digest for the data (if downloading by data hash) */ digest?: string | undefined); }