import type { Adapter, RowType } from '@sqb/connect'; import type { NativeColumnInfo } from './drivers/types.js'; /** * `@sqb/connect` {@link Adapter.Cursor} wrapping a `NativeStatement`'s * synchronous `iterate()` result: `fetch(n)` pulls up to `n` rows at a * time, converting each row to an array (column-ordered via the * statement's column metadata) when `rowType` is `'array'`. */ export declare class SqliteCursor implements Adapter.Cursor { private _iterator?; private readonly _rowType; private readonly _columns; constructor(iterator: IterableIterator>, opts: { rowType: RowType; columns: NativeColumnInfo[]; }); get isClosed(): boolean; get rowType(): RowType; /** Stops consuming the iterator by dropping it - SQLite's synchronous iterator has no `close()`/`return()` of its own that needs calling. */ close(): Promise; /** Pulls up to `nRows` more rows from the iterator, or `undefined` once it's exhausted. */ fetch(nRows: number): Promise; }