import { Readable, Transform, TransformOptions, Writable } from "stream"; import JSON2CSVBase = require("./JSON2CSVBase"); import JSON2CSVTransform = require("./JSON2CSVTransform"); declare class JSON2CSVAsyncParser extends JSON2CSVBase { input: Transform; processor: Writable; transform: JSON2CSVTransform; constructor(opts?: json2csv.Options, transformOpts?: TransformOptions); fromInput(input: Readable): JSON2CSVAsyncParser; throughTransform(transform: Transform): JSON2CSVAsyncParser; toOutput(output: Writable): JSON2CSVAsyncParser; promise(returnCSV?: boolean): Promise; } export = JSON2CSVAsyncParser;