/// import { TypeMap } from './mappings'; export interface ReadCSVOptionsCommon { /** Names and types of all the columns; if empty then names and types are inferred/auto-generated */ dataTypes?: T; /** The compression format of the source, or infer from file extension */ compression?: 'infer' | 'snappy' | 'gzip' | 'bz2' | 'brotli' | 'zip' | 'xz'; /** Whether to rename duplicate column names */ renameDuplicateColumns?: boolean; /** Rows to read; -1 is all */ numRows?: number; /** Rows to skip from the start */ skipHead?: number; /** Rows to skip from the end */ skipTail?: number; /** Treatment of quoting behavior */ quoteStyle?: 'all' | 'none' | 'nonnumeric' | 'minimal'; /** Line terminator */ lineTerminator?: string; /** Quoting character (if `allowDoubleQuoting` is true) */ quoteCharacter?: string; /** Decimal point character; cannot match delimiter */ decimalCharacter?: string; /** Treat whitespace as field delimiter; overrides character delimiter */ whitespaceAsDelimiter?: boolean; /** Whether to skip whitespace after the delimiter */ skipInitialSpaces?: boolean; /** Ignore empty lines or parse line values as invalid */ skipBlankLines?: boolean; /** Whether a quote inside a value is double-quoted */ allowDoubleQuoting?: boolean; /** Whether to keep the built-in default NA values */ keepDefaultNA?: boolean; /** Whether to disable null filter; disabling can improve performance */ autoDetectNullValues?: boolean; /** Whether to parse dates as DD/MM versus MM/DD */ inferDatesWithDayFirst?: boolean; /** Field delimiter */ delimiter?: string; /** Numeric data thousands separator; cannot match delimiter */ thousands?: string; /** Comment line start character */ comment?: string; /** Header row index */ header?: 'infer' | null | number; /** String used as prefix for each column name if no header or names are provided. */ prefix?: string; /** Additional values to recognize as null values */ nullValues?: string[]; /** Additional values to recognize as boolean true values */ trueValues?: string[]; /** Additional values to recognize as boolean false values */ falseValues?: string[]; /** Names of columns to read as datetime */ datetimeColumns?: string[]; /** Names of columns to read; empty/null is all columns */ columnsToReturn?: string[]; /** The number of bytes to skip from source start */ byteOffset?: number; /** The number of bytes to read */ byteRange?: number; } export interface ReadCSVFileOptions extends ReadCSVOptionsCommon { sourceType: 'files'; sources: string[]; } export interface ReadCSVBufferOptions extends ReadCSVOptionsCommon { sourceType: 'buffers'; sources: (Uint8Array | Buffer)[]; } export declare type ReadCSVOptions = ReadCSVFileOptions | ReadCSVBufferOptions; export interface WriteCSVOptions { /** The field delimiter to write. */ delimiter?: string; /** String to use for null values. */ nullValue?: string; /** String to use for boolean true values (default 'true'). */ trueValue?: string; /** String to use for boolean false values (default 'false'). */ falseValue?: string; /** Indicates whether to write headers to csv. */ includeHeader?: boolean; /** Character to use for separating lines, */ lineTerminator?: string; /** Maximum number of rows to write in each chunk (limits memory use). */ rowsPerChunk?: number; } export interface TableWriteCSVOptions extends WriteCSVOptions { /** Callback invoked for each CSV chunk. */ next: (chunk: Buffer) => void; /** Callback invoked when writing is finished. */ complete: () => void; /** Column names to write in the header. */ columnNames?: string[]; } //# sourceMappingURL=csv.d.ts.map