// Type definitions for json2csv 4.5 // Project: https://github.com/zemirco/json2csv // Definitions by: Juanjo Diaz // Daniel Gooß // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 import { Readable, TransformOptions } from 'stream'; import { json2csv } from './JSON2CSVBase'; import JSON2CSVParser from './JSON2CSVParser'; import JSON2CSVAsyncParser from './JSON2CSVAsyncParser'; import JSON2CSVTransform from './JSON2CSVTransform'; export default json2csv; export { JSON2CSVParser as Parser, JSON2CSVAsyncParser as AsyncParser, JSON2CSVTransform as Transform }; // Convenience method to keep the API similar to version 3.X export function parse( data: Readonly | ReadonlyArray, opts?: json2csv.Options ): string; export function parseAsync( data: Readonly | ReadonlyArray | Readable, opts?: json2csv.Options, transformOpts?: TransformOptions ): Promise;