import { FormatSerializer } from "../FormatSerializer"; import { FormatDeserializer } from "../FormatDeserializer"; declare class CsvFormat implements FormatSerializer, FormatDeserializer { private static readonly COMMA; private static readonly DEFAULT_SEPARATOR; private static readonly DOUBLE_QUOTES; private static readonly EMBEDDED_DOUBLE_QUOTES; private static readonly NEW_LINE_UNIX; private static readonly LINE_FEED; private static readonly CARRIAGE_RETURN; private static readonly NEW_LINE_WINDOWS; /** * Formatter - * if names provided it will use it as header row (unless noHeaders) and expose only those fields (if objects) * if names not provided, it will use the names of the first object and expose all those fields for the rest * Parser - * if names provided it will extract only those fields * if noHeaders is set, it will use these names to map the row values by their indices */ private readonly names?; /** * When used in formatter, it means the headers row will not be written * When used in parser, it means that the output of parsing will be an array of arrays (unless names is specified) */ private readonly noHeaders; /** * Formatting will quote all values */ private readonly forceQuote; /** * What separator to format with or expect to parse with */ private readonly separator; constructor(names?: string[] | null, noHeaders?: boolean | null, forceQuote?: boolean | null, separator?: string | null); private appendEscaped; private appendHeaders; private appendRow; serialize(payload: any): string | null; private accumulate; deserialize(input: string | null): any; } export default CsvFormat; //# sourceMappingURL=CsvFormat.d.ts.map