/** * The lines of a file, exactly as `readFile(file, 'utf8').split('\n')` gives * them, while holding one chunk and one line in memory instead of the whole * file. A session log can outgrow the longest string Node can build (~512 MiB), * and whole-file reads of many logs at once ran the runner out of memory. * * Splitting on the `\n` byte before decoding is safe: in UTF-8 that byte never * occurs inside a multi-byte character. Read errors (missing file, a directory) * reject the iteration, as `readFile` rejects. */ export declare function readLines(file: string, chunkBytes?: number): AsyncGenerator; //# sourceMappingURL=jsonl-lines.d.ts.map