import { CSVParserParseOptions, CSVProcessingOptions, CSVRecord } from '../../../core/types'; import { createCSVRecordAssembler } from '../../api/model/createCSVRecordAssembler'; import { FlexibleStringCSVLexer } from '../FlexibleStringCSVLexer'; /** * Base class for String CSV Parsers. * Provides common implementation for both object and array output formats. * * @template Header - The type of the header row * @template Format - Output format: 'object' or 'array' * * @remarks * This is an internal base class. Use FlexibleStringObjectCSVParser or * FlexibleStringArrayCSVParser for concrete implementations, or use the * createStringCSVParser() factory function for type-safe instantiation. * * Uses {@link CSVProcessingOptions} which excludes execution strategy (engine). * Low-level parsers focus on CSV processing logic only. */ export declare abstract class BaseStringCSVParser
, Format extends "object" | "array"> { protected readonly lexer: FlexibleStringCSVLexer; protected readonly assembler: ReturnType; constructor(options?: CSVProcessingOptions
); /** * Parse a chunk of CSV string data * * @param chunk - CSV string chunk to parse (optional for flush) * @param options - Parse options * @returns Iterable iterator of parsed CSV records */ parse(chunk?: string, options?: CSVParserParseOptions): IterableIterator>; }