import { IEntityDataService, IEmptyConstruct } from './../interfaces/index'; export declare class DownloadFileService { private entityService; constructor(entityService: IEntityDataService); /** * Get file from server to download * @param entityType Type of data * @param id ID of Entity */ downloadFileById(entityType: IEmptyConstruct, id: string): void; /** * Convert to string from byte array * @param dataByteArray The bytes array */ private convertByteArrayToString(dataByteArray); /** * Download file * @param dataBinaryStr The bytes array * @param fileName File name to download */ private downloadFile(dataBinaryStr, fileName); }