import { AbstractPaginator } from './AbstractPaginator.js'; import { type Cursor } from './Cursor.js'; import type { CursorPaginatedResponse, CursorPaginationOptions } from './PaginationMeta.js'; /** * Cursor-based paginator (keyset / seek pagination). */ export declare class CursorPaginator extends AbstractPaginator { private readonly next; private readonly previous; private readonly more; private readonly cursorParamName; /** * @param items - Current page items (length ≤ perPage). * @param perPage - Requested page size. * @param next - Cursor for the following page, or null. * @param previous - Cursor for the preceding page, or null. * @param hasMore - True when a next page exists. * @param options - Path, query, cursor param name, fragment. */ constructor(items: T[], perPage: number, next: Cursor | null, previous: Cursor | null, hasMore: boolean, options?: CursorPaginationOptions); nextCursor(): Cursor | null; previousCursor(): Cursor | null; nextPageUrl(): string | null; previousPageUrl(): string | null; hasMore(): boolean; hasPages(): boolean; toJSON(): CursorPaginatedResponse; } //# sourceMappingURL=CursorPaginator.d.ts.map