import type { CursorPagination, OffsetPagination, PaginationCursorDecoded, PaginationOffsetDecoded } from '../../../types'; export declare const decodeCursor: (cursor: string) => PaginationOffsetDecoded | PaginationCursorDecoded; export declare function resolveOffsetPagination({ cursor, limit: queryLimit, offset: queryOffset, }: { cursor?: string; limit: number; offset?: number; }): { offset: number; limit: number; }; export declare const encodeNextCursor: (pagination: OffsetPagination | CursorPagination) => string | null; export declare function paginateArray(items: T[], { offset, limit }: { offset: number; limit: number; }): { data: T[]; nextCursor: string | null; };