import { type JqOptions } from './types.ts'; /** * Parse a whitespace-separated stream of JSON values. * * Empty input holds no documents at all, which is why jq prints nothing * and exits 0 for an empty file. */ export declare function parseJsonDocs(raw: Uint8Array): unknown[]; export declare function parseJsonAuto(raw: Uint8Array): unknown; /** * Parse an RFC 7464 JSON text sequence (`--seq`). * * Every value is introduced by RS, so anything before the first one is * text the sequence never claimed. jq reports that as an ignored parse * error and prints nothing for it; mirage drops it just as silently, * which is the one divergence here. */ export declare function parseSeqDocs(raw: Uint8Array): unknown[]; /** * Split one input into the strings `jq -R` reads it as. * * jq breaks on newlines only (never on the other separators a Unicode * line splitter honors) and a trailing newline ends the last line rather * than starting an empty one. */ export declare function splitRawLines(raw: Uint8Array): string[]; export declare function isJsonlPath(path: string): boolean; export declare function isStreamableJsonlExpr(expression: string): boolean; /** * Evaluate a per-element program over a JSONL file, line by line. * * Only output options reach here, since the caller keeps this path off * for anything that changes input assembly. */ export declare function evalJsonlStream(source: AsyncIterable, expression: string, opts: JqOptions): AsyncIterable; //# sourceMappingURL=stream.d.ts.map