import { type Collection } from 'mongodb'; import { BaseDocument, Projection, Query, Sort } from './types'; export type FindPaginatedParams = { first?: number | null; after?: string | null; last?: number | null; skip?: number | null; before?: string | null; query?: Query; sort?: Sort; projection?: Projection; }; export type FindPaginatedResult = { edges: Array<{ cursor: string; node: TDocument; }>; pageInfo: { count: number; totalCount: number; startCursor: string | null; endCursor: string | null; hasPreviousPage: boolean; hasNextPage: boolean; }; }; export declare const findPaginated: (collection: Collection, { first, after, last, before, skip, query, sort: originalSort, projection, }: FindPaginatedParams) => Promise>;