/** * Yields each line of a byte or text stream that parses as JSON. Skips blank and non-JSON lines: code fences, prose, * a cut-off last line. * * @example * for await (const value of streamJsonLines(result.textStream)) { * if (isComponentEntry(value)) await saveEntry(value); * } * * @example * if (!res.body) throw new Error(`Generation failed (${res.status})`); * const entries = streamJsonLines(res.body); */ export declare function streamJsonLines(source: ReadableStream | AsyncIterable): AsyncGenerator;