import { Entity } from './entity'; import { EntityCollection } from './entity-collection'; import { EntityCollectionLike } from './entity-collection-like'; /** * Represents paginated entity collection. * * @type {PaginatedEntityCollection} */ export declare abstract class PaginatedEntityCollection extends EntityCollection { /** * Total length of paginated entity collection if known. * * @type {number} */ readonly totalLength?: number; /** * Constructor. * * @param {EntityCollectionLike} entityCollectionLike Entity collection like. * @param {number} totalLength Total length. */ constructor(entityCollectionLike?: EntityCollectionLike, totalLength?: number); /** * Gets next page of entity collection. * * @returns {Promise>} Next page of entity collection. */ abstract nextPage(): Promise>; /** * Checks if entity collection has next page. * * @returns {boolean} True when entity collection has next page. False otherwise. */ abstract hasNextPage(): boolean; /** * Gets prev page of entity collection. * * @returns {Promise>} Prev page of entity collection. */ abstract prevPage(): Promise>; /** * Checks if entity collection has prev page. * * @returns {boolean} True when entity collection has prev page. False otherwise. */ abstract hasPrevPage(): boolean; } //# sourceMappingURL=paginated-entity-collection.d.ts.map