/** * Created by tacb0ss on 07/05/2018. */ import { ExportToCsv, Options } from 'export-to-csv'; import { ObjectTS, StringMap } from '../utils/types'; import { Module } from '../core/module'; declare type Config = { options: Options; }; export declare type ReadPropsMap = { [s: string]: keyof K; }; export declare type WritePropsMap = { [P in keyof K]: string; }; declare class CSVModule_Class extends Module { private csvExporter; constructor(); protected init(): void; static createExporter(options: Options): ExportToCsv; export(items: T[], returnCsv?: boolean): any; saveToFile(outputFile: string, items: T[], columnsToProps?: WritePropsMap): Promise; readCsv>(inputFile: string, columnsToProps?: ReadPropsMap): Promise; private createReadParserOptions; } export declare const CSVModule: CSVModule_Class; export {};