/** * CSV Line Splitting Utilities * * Shared helpers for splitting CSV input into lines while preserving * the original line ending length (LF/CR/CRLF). */ export interface SplitLine { /** Line content without the line ending */ line: string; /** Line ending length (0 when last line has no newline) */ lineEndingLength: number; /** Total length of line + line ending */ lineLengthWithEnding: number; } /** * Split input into lines using the given linebreak regex and yield per-line * metadata including the actual line ending length. * * Notes: * - Works with mixed line endings. * - Skips trailing split artifacts (empty string produced by split when the input ends with a newline). */ export declare function splitLinesWithEndings(input: string, linebreakRegex: RegExp | string): Generator;