/** * @copyright Sister Software * @license AGPL-3.0 * @author Teffen Ellis, et al. * * JSON Lines helpers, all three DEPRECATED — `spliterator` covers the whole surface, and a thin * wrapper in front of it only hides which half you are getting. * * - `readJSONL` → `Array.fromAsync(JSONSpliterator.fromAsync(path))` * - `iterateJSONL` → `JSONSpliterator.fromAsync(path)` * - `writeJSONL` → `createNewlineWriter(path)` * * Kept exported because `@mailwoman/core` is published; they go in the next major. */ /** * Read an entire JSONL file into memory. Blank and whitespace-only lines are skipped. * * @deprecated Use `Array.fromAsync(JSONSpliterator.fromAsync(path))` from `spliterator`. This buffers the whole file * as one string, which throws `ERR_STRING_TOO_LONG` past V8's 512 MiB cap. */ export declare function readJSONL(path: string): T[]; /** * Write rows as JSONL (one `JSON.stringify` per line, trailing newline). Returns the row count. * * @deprecated Use `createNewlineWriter(path)` from `spliterator`. This concatenates every row into one string before it * writes anything, so the output is capped the same way the input is. */ export declare function writeJSONL(path: string, rows: Iterable): number; /** * Stream a JSONL file row-by-row without loading it whole. Blank lines are skipped. * * @deprecated Use `JSONSpliterator.fromAsync(path)` from `spliterator` — this is a decode-then-parse wrapper around * exactly that. */ export declare function iterateJSONL(path: string): AsyncIterable; //# sourceMappingURL=jsonl.d.ts.map