import type { ParserOptions, StreamParserOptions } from '@json2csv/plainjs'; import { type AwaitableReadableStream } from './TransformStream.js'; export default class JSON2CSVNodeAsyncParser { private opts; private asyncOpts; private writableStrategy?; private readableStrategy?; constructor(opts?: ParserOptions, asyncOpts?: StreamParserOptions, writableStrategy?: QueuingStrategy, readableStrategy?: QueuingStrategy); /** * Main function that converts json to csv. * * @param {Stream|Array|Object} data Array of JSON objects to be converted to CSV * @returns {Stream} A stream producing the CSV formated data as a string */ parse(data: string | string | ArrayBufferView | Iterable | AsyncIterable | TRaw | ReadableStream): AwaitableReadableStream; } //# sourceMappingURL=AsyncParser.d.ts.map