// Copyright © 2022-2026 Partium, Inc. DBA Partium import { APIObject } from '..'; import { BACKEND_SERVICE, HttpsService } from '../services/http/https.service.interface'; import { PaginatedRequestService } from '../services/paginated-request.service'; /** * Factory that produces Services to fetch paginated items from a defined API-endpoint */ export declare class PaginatedRequestServiceFactory { /** * Generate a new service for fetching paginated items from a GET endpoint * * @param createObject function that can create an object of the requested type from the backend-response * @param httpsService https-service to perform requests * @param url url of the API-endpoint * @param backendService which backend to target (optional) * @param urlParams url parameters to append to the request (optional) * @param pageSize how many items should be loaded per page (optional) * @param cursorPaginationEnabled if the pagination functionality is enabled (optional) * @returns service that allows to load parts from the given endpoint+configuration */ static generatePaginatedRequestService(createObject: (resObj: any) => T, httpsService: HttpsService, url: string, backendService?: BACKEND_SERVICE, urlParams?: Array, pageSize?: number, cursorPaginationEnabled?: boolean): PaginatedRequestService; }