export declare const CR = "\r"; export type CR = typeof CR; export declare const CRLF = "\r\n"; export type CRLF = typeof CRLF; export declare const LF = "\n"; export type LF = typeof LF; export type Newline = CRLF | CR | LF; /** * COMMA is a symbol for comma(,). */ export declare const COMMA = ","; /** * DOUBLE_QUOTE is a symbol for double quote("). */ export declare const DOUBLE_QUOTE = "\""; export declare const DEFAULT_DELIMITER = ","; export type DEFAULT_DELIMITER = typeof DEFAULT_DELIMITER; export declare const DEFAULT_QUOTATION = "\""; export type DEFAULT_QUOTATION = typeof DEFAULT_QUOTATION; /** * Default threshold (in bytes) for Blob reading strategy. * * Files smaller than this use `blob.arrayBuffer()` (faster), * files equal or larger use `blob.stream()` (memory-efficient). * * This value is determined by benchmarks. * * @category Constants */ export declare const DEFAULT_ARRAY_BUFFER_THRESHOLD: number; /** * Default maximum buffer size for CSV lexer in characters (UTF-16 code units). * * @remarks * This constant defines the maximum size of the internal buffer used by the CSV lexer * during tokenization. The buffer size is measured in UTF-16 code units (JavaScript string length). * Approximately 10MB for ASCII text, but may vary for non-ASCII characters. * * @category Constants */ export declare const DEFAULT_LEXER_MAX_BUFFER_SIZE: number; /** * Default maximum field count per record for CSV record assembler. * * @remarks * This constant defines the maximum number of fields (columns) allowed in a single CSV record. * This limit helps prevent memory exhaustion attacks from malformed CSV data. * * @category Constants */ export declare const DEFAULT_ASSEMBLER_MAX_FIELD_COUNT = 100000; /** * Default maximum binary size in bytes for ArrayBuffer/Uint8Array inputs. * * @remarks * This constant defines the maximum size for binary data (ArrayBuffer or Uint8Array) * to prevent memory exhaustion attacks. Approximately 100MB. * * @category Constants */ export declare const DEFAULT_BINARY_MAX_SIZE: number; /** * Default backpressure check interval for stream transformers. * * @remarks * This constant defines how often stream transformers check for backpressure * (measured in number of items processed). The transformer yields to the event loop * when backpressure is detected to prevent blocking the main thread. * * Used by CSVLexerTransformer, StringCSVParserStream, and BinaryCSVParserStream. * * @category Constants */ export declare const DEFAULT_STREAM_BACKPRESSURE_CHECK_INTERVAL = 100; /** * Default backpressure check interval for record assembler transformer. * * @remarks * This constant defines how often the record assembler transformer checks for backpressure * (measured in number of records processed). A lower value than general stream transformers * is used because record assembly is a more granular operation. * * Used by CSVRecordAssemblerTransformer. * * @category Constants */ export declare const DEFAULT_ASSEMBLER_BACKPRESSURE_CHECK_INTERVAL = 10; /** * Delimiter type enumeration for unified token format. * * Used in the new FieldToken format to indicate what follows the field value. * This enables a more efficient token format where only field tokens are emitted. * * @category Constants */ export declare enum Delimiter { /** Next token is a field (followed by field delimiter like comma) */ Field = 0, /** Next token is a record delimiter (newline) */ Record = 1 }