import type { QueryStreams, Store, StreamPosition } from "../types/index.js"; /** Streams read per page when walking the whole table. */ export declare const DEFAULT_STREAM_PAGE = 500; /** * Walks EVERY stream matching `query`, paging with the keyset cursor. * * `Store.query_streams` defaults to `limit: 100`, so a caller that wants * the whole table must page — passing no query silently truncates at the * first page, which is a false all-clear for anything that reports on * what it found. * * The cursor is the last stream name the callback saw; results are * ordered by stream name, so a short page means the walk is done. * * @param store - Store to walk. * @param callback - Invoked once per matching position, in name order. * @param query - Optional filter. A caller-supplied `limit` sets the page * size (the walk still visits every match); `after` seeds the cursor. * @returns The total number of positions emitted. * * @internal */ export declare function walk_streams(store: Store, callback: (position: StreamPosition) => void, query?: Omit & { after?: string; limit?: number; }): Promise; //# sourceMappingURL=walk-streams.d.ts.map