export interface ParseCsvOptions { separator?: string; /** `true` reads them off the first row, `false` keys every row by column index, an array names the columns of every row. Defaults to true. */ headers?: boolean | string[]; /** Trims the whitespace around each field, keeping what a quoted field holds. Defaults to false. */ trim?: boolean; /** Drops lines whose fields are all empty. Defaults to true. */ skipEmptyLines?: boolean; } export interface StringifyCsvOptions { separator?: string; headers?: string[]; /** Line ending, `\r\n` for Excel or RFC 4180. Defaults to `\n`. */ newline?: string; /** Starts with a UTF-8 byte order mark, so Excel reads accents right. Defaults to false. */ bom?: boolean; } export declare function parseCsv>(str: string, { separator, headers, trim, skipEmptyLines }?: ParseCsvOptions): T[]; export declare function stringifyCsv(rows: Record[], { separator, headers, newline, bom }?: StringifyCsvOptions): string; //# sourceMappingURL=csv.d.ts.map