/** * @pwngh/economy-lab * * Copyright (c) Preston Neal * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ /** * One bounded page of an async stream: the rows in [offset, offset + limit), plus the full * total. Drains the source — the total requires it — and offset rows shift under live writes, * so this is for quiescent or snapshot-ish reads: consoles, ops scripts, tests. A live feed * should iterate the stream and stop instead. */ export declare function paginate(source: AsyncIterable, page: { offset: number; limit: number; }): Promise<{ rows: T[]; total: number; }>;