import { BaseDocument, CursorObject, Query, Sort } from './types'; export declare const buildCursor: (document: TDocument, sort: Sort) => CursorObject; export declare const urlSafeCursor: (cursor: string) => string; export declare const unWrapCursor: (cursor: string) => string; export declare const encodeCursor: (cursorObject: CursorObject) => string; export declare const decodeCursor: (cursorString: string) => CursorObject; export declare const buildQueryFromCursor: (sort: Sort, cursor: CursorObject) => Query; export declare const normalizeDirectionParams: ({ first, after, last, before, sort, }: { first?: number | null | undefined; after?: string | null | undefined; last?: number | null | undefined; before?: string | null | undefined; sort?: Sort | undefined; }) => { limit: number; cursor: CursorObject | null; sort: Sort; paginatingBackwards: boolean; };