import { BinaryCSVProcessingOptions, CSVParserParseOptions, CSVRecord, StringCSVParser } from '../../../core/types'; /** * Base class for Binary CSV Parsers. * Provides common implementation for both object and array output formats. * Combines TextDecoder with StringCSVParser for binary data parsing. * * @template Header - The type of the header row * @template Format - Output format: 'object' or 'array' * * @remarks * This is an internal base class. Use FlexibleBinaryObjectCSVParser or * FlexibleBinaryArrayCSVParser for concrete implementations, or use the * createBinaryCSVParser() factory function for type-safe instantiation. * * Uses {@link BinaryCSVProcessingOptions} which excludes execution strategy (engine). * Low-level parsers focus on CSV processing logic only. */ export declare abstract class BaseBinaryCSVParser
, Format extends "object" | "array"> { protected readonly decoder: TextDecoder; protected readonly stringParser: StringCSVParser; constructor(options?: BinaryCSVProcessingOptions
); /** * Parse a chunk of CSV binary data * * @param chunk - CSV binary chunk (BufferSource) to parse (optional for flush) * @param options - Parse options including stream mode * @returns Iterable iterator of parsed CSV records * * @remarks * When using streaming mode (`{ stream: true }`), you must call `parse()` without * arguments at the end to flush any remaining data from the TextDecoder buffer. */ parse(chunk?: BufferSource, options?: CSVParserParseOptions): IterableIterator>; }