import type { Entry } from "@aotter/mantle-spec"; import type { PublishedEntryPage, ReadPublishedPageArgs } from "../../domain/port/EntryReader.js"; export type EntryCursorValue = string | number; export declare function encodeCursor(offset: number): string; export declare function decodeCursor(cursor: string | undefined): number; export declare function encodeEntryCursor(updatedAt: number, id: string): string; export declare function decodeEntryCursor(cursor: string | undefined): readonly [updatedAt: number, id: string] | null; export declare function encodeEntrySortCursor(field: string, direction: "asc" | "desc", value: EntryCursorValue, id: string): string; export declare function decodeEntrySortCursor(cursor: string | undefined, field: string, direction: "asc" | "desc"): readonly [value: EntryCursorValue, id: string] | null; export declare function escapeLikeTerm(term: string): string; export declare const PUBLISHED_PAGE_DATA_BUDGET = 1048576; export declare function publishedPageLimit(limit?: number): number; /** In-memory adapters share the semantic cursor, projection and byte-budget rules. */ export declare function paginatePublishedEntries(entries: readonly Entry[], args: ReadPublishedPageArgs): PublishedEntryPage; //# sourceMappingURL=Pagination.d.ts.map