/// import { Stream } from 'stream'; import { FileStorageConnection } from '../connection/file-storage-connection'; import { PrivacyStrategy } from '../privacy/privacy'; /** * The service class responsible for retrieving data */ export declare class RetrieveProximaxDataService { readonly fileStorageConnection: FileStorageConnection; private readonly fileDownloadService; /** * Construct this class * * @param fileStorageConnection the connection to file storage */ constructor(fileStorageConnection: FileStorageConnection); /** * Retrieve data's byte stream * * @param dataHash the data hash of the target download * @param privacyStrategy the privacy strategy to decrypt the data * @param validateDigest the flag whether to validate digest * @param digest the digest of the target download * @param contentType the content type of the target download * @return the data's byte stream */ getStream(dataHash: string, privacyStrategy: PrivacyStrategy, validateDigest: boolean, digest?: string, contentType?: string): Promise; }