import { CsvStringifier } from './csv-stringifiers/abstract'; export interface IFileWriter { write(string: string): Promise; } export declare class CsvWriter { private readonly csvStringifier; private append; private readonly fileWriter; constructor(csvStringifier: CsvStringifier, path: string, encoding?: string, append?: boolean, useBom?: boolean, fileWriter?: IFileWriter); writeRecords(records: T[]): Promise; private get headerString(); }