import { IRequestOptions } from "@esri/arcgis-rest-request";
import { IHubSearchResponse } from "../../types/IHubSearchResponse";
import { IPagingParams } from "@esri/arcgis-rest-portal";
import { IHubRequestOptions } from "../../../hub-types";
type ICommonNextOptions = IRequestOptions & IPagingParams & {
    requestOptions?: IHubRequestOptions;
};
/**
 * @private
 * Create a `.next()` function for portal search type
 * @param request
 * @param nextStart
 * @param total
 * @param fn
 * @returns
 */
export declare function getNextPortalCallback<I extends ICommonNextOptions, O>(request: I, nextStart: number, total: number, fn: (r: I) => Promise<IHubSearchResponse<O>>): () => Promise<IHubSearchResponse<O>>;
export {};
