import { AcceptedData, ColumnHeader, ConfigOptions, CsvOutput, CsvRow, FormattedData, Newtype, WithDefaults } from "./types.ts"; export declare const thread: (initialValue: T, ...fns: Array) => T; export declare const addBOM: (config: WithDefaults) => (output: CsvOutput) => CsvOutput; export declare const addTitle: (config: WithDefaults) => (output: CsvOutput) => CsvOutput; export declare const addEndOfLine: (output: CsvOutput) => (row: CsvRow) => CsvOutput; export declare const buildRow: (config: WithDefaults) => (row: CsvRow, data: FormattedData) => CsvRow; export declare const addFieldSeparator: (config: WithDefaults) => >(output: T) => T; export declare const addHeaders: (config: WithDefaults, headers: Array) => (output: CsvOutput) => CsvOutput; export declare const addBody: (config: WithDefaults, headers: Array, bodyData: T) => (output: CsvOutput) => CsvOutput; /** * * Convert CsvOutput => string for the typechecker. * * Useful if you need to take the return value and * treat is as a string in the rest of your program. */ export declare const asString: (newtype: Newtype) => string; export declare const formatData: (config: ConfigOptions, data: AcceptedData) => FormattedData;