import { type Collection } from 'mongodb'; import { BaseDocument, Sort } from './types'; export type AggregatePaginatedParams = { first?: number | null; after?: string | null; last?: number | null; skip?: number | null; before?: string | null; pipeline: Array<{ [key: string]: any; }>; sort?: Sort; }; export type AggregatePaginatedResult = { edges: Array<{ cursor: string; node: TDocument; }>; pageInfo: { count: number; totalCount: number; startCursor: string | null; endCursor: string | null; hasPreviousPage: boolean; hasNextPage: boolean; }; }; export declare const aggregatePaginated: (collection: Collection, { first, after, last, before, skip, pipeline, sort: originalSort, }: AggregatePaginatedParams) => Promise>;