import type { MaterializeOptions, RecordBatch, Row } from "./table.ts"; /** * Iterate rows from a stream of RecordBatches. * * Convenience async flattener so consumers don't have to manually iterate batches. * * Note: yielded rows are the per-row proxy objects produced by iterating a RecordBatch. * They are safe to store/collect (each iteration yields a distinct row object). * * @example * for await (const row of rows(streamDecodeNative(query(...)))) { * console.log(row.id, row.name); * } */ export declare function rows(batches: AsyncIterable): AsyncGenerator; /** * Collect all rows from a stream of RecordBatches into an array of plain objects. * * This materializes each row via `row.toObject()` so the results are safe to * store/serialize/display without Proxy semantics. * * @example * const rows = await collectRows(streamDecodeNative(query(...))); */ export declare function collectRows(batches: AsyncIterable, options?: MaterializeOptions): Promise[]>; //# sourceMappingURL=rows.d.ts.map