export declare const DEFAULT_MAX_RECORD_BYTES: number; export type OpenTranscriptLinesOptions = { /** Largest allowed record (one line, excluding its newline) in bytes. Defaults to 2 MiB. */ maxRecordBytes?: number; }; export type OpenTranscriptLinesResult = { lines: AsyncIterable; } | { error: string; }; /** * Opens a transcript for streaming, one line at a time, with `String.split('\n')` * semantics (a trailing newline yields a final empty line, `\r` is preserved). * * A `maxRecordBytes` that is not a non-negative safe integer rejects with `RangeError`. * An open failure resolves to `{ error }`. An oversized record is NOT skipped or * reported inline: the returned async iterable throws * `transcript record exceeds byte limit` when it reaches the * record, ending iteration, and the underlying stream is destroyed. Lines yielded * before the oversized record remain valid. */ export declare function openTranscriptLines(path: string, { maxRecordBytes }?: OpenTranscriptLinesOptions): Promise;