import type { FormatCodec } from "../format-codec.js"; /** * Result of parsing a single JSONL line. */ export interface ParsedLine { /** 1-based line number in the source file */ readonly lineNumber: number; /** The raw text of the line */ readonly rawLine: string; /** The parsed JSON value (undefined if parse failed) */ readonly parsed: unknown; /** JSON parse error message, if parsing failed */ readonly parseError?: string; } /** * Parse a raw JSONL string line-by-line, returning per-line results * with 1-based line numbers and individual parse errors. * * Empty/whitespace-only lines are skipped. */ export declare const jsonlDecodeLines: (raw: string) => ReadonlyArray; /** * Creates a JSONL (JSON Lines / Newline Delimited JSON) codec. * * Each element of the array is serialized as a single JSON line. * On decode, each non-empty line is parsed as a JSON value. * * @returns A FormatCodec for JSONL serialization * * @example * ```typescript * const codec = jsonlCodec() * const layer = makeSerializerLayer([codec]) * ``` */ export declare const jsonlCodec: () => FormatCodec; //# sourceMappingURL=jsonl.d.ts.map