export type CsvCell = string | number | boolean | Date | null | undefined; export type CsvOptions = { /** Default ','. */ separator?: string; /** * Prefix text that a spreadsheet would run as a formula (starting with =, +, -, @, tab or carriage return) with an * apostrophe. Default true. Numbers, and text that is just a negative number like '-5', are never changed. */ escapeFormulas?: boolean; }; /** Rows to CSV text (RFC 4180): cells with the separator, quotes or line breaks are quoted. */ export declare const toCsv: (rows: CsvCell[][], options?: CsvOptions) => string; /** Saves rows as a UTF-8 .csv file that Excel opens correctly. Does nothing when there are no rows. */ export declare const downloadCsv: (rows: CsvCell[][], fileName: string, options?: CsvOptions) => void;