import JSON2CSVBase from './JSON2CSVBase'; declare class JSON2CSVParser extends JSON2CSVBase { /** * Main function that converts json to csv. * * @param {object|object[]} data Array of JSON objects to be converted to CSV * @returns {string} The CSV formated data as a string */ public parse(data: Readonly | ReadonlyArray): string; /** * Preprocess the data according to the give opts (unwind, flatten, etc.) and calculate the fields and field names if they are not provided. * * @param {object|object[]} data Array or object to be converted to CSV * @returns {object[]} Preprocessed data ready to be processed */ protected preprocessData(data: T | Array): Array; /** * Create the content row by row below the header * * @param {object[]} data Array of JSON objects to be converted to CSV * @returns {string} CSV string (body) */ protected processData(data: Array): string; } export default JSON2CSVParser;