/** * Resolve the `rel=next` target in an RFC 8288 Link header without permitting a * response to redirect an authenticated pagination client to another origin. * * A malformed or unsafe Link header is treated as having no next page. Callers * can therefore stop safely without having to distinguish an exhausted list * from a provider that returned an unusable continuation. */ export declare function nextPageUrlFromLinkHeader(linkHeader: string | null | undefined, requestUrl: string | URL): URL | null; /** * Return an unambiguous next-page cursor from a safe Link header target. * * A missing, empty, or repeated query parameter is rejected. This prevents a * caller from accidentally advancing with a cursor whose interpretation * depends on a provider's duplicate-query-parameter semantics. */ export declare function nextPageCursorFromLinkHeader(linkHeader: string | null | undefined, requestUrl: string | URL, cursorParameter?: string): string | null; /** Validate a pagination request URL before it is used as a Link resolution base. */ export declare function validatePaginationRequestUrl(requestUrl: string | URL): URL;