import { DataColumn } from '../../models'; import { ExportFileService } from '../../modules/export-file/export-file.service'; import * as i0 from "@angular/core"; export declare enum ExportType { CSV = 0, EXCEL = 1 } export declare class ExportHandlerService { private exportFileSvc; private readonly NULL_STRING; constructor(exportFileSvc: ExportFileService); /** * Gets data, transform, prepares file, and downloads it. * @param exportType What file type do you want to get? * @param dataSet Array of rows * @param dataColumns Array of columns * @param fileName Final file name (no extensions) */ exportIntoFile(exportType: ExportType, dataSet: T[], dataColumns: DataColumn[], fileName: string): void; /** * Transforms data from the table into an ExportDto object. * @param dataSet list of objects. Think of this as "the array of rows". * @param dataColumns list of columns. * @param fileName of the file to be downloaded * @returns ExportDto object to be then passed to an exporting service */ private parseData; private getValueType; /** * @param object In which to look for an attribute * @param key Either direct key of the object, or composite key. Example: Student.Id === object.Student.Id * @returns value at given key */ private getValueRecursively; /** * Either makes the user download the file immediately or opens up the save file window (it depends on the user's settings). * @param file Promise of Blob * @param fileName Just the name * @param fileExtensionName Just the extension (no dots) */ private downloadFile; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵprov: i0.ɵɵInjectableDeclaration>; }