/** * Represents Spring's page abstraction. * @see {@link http://docs.spring.io/spring-data/commons/docs/current/api/org/springframework/data/domain/Page.html} */ export type Page = { content: T[]; last: boolean; totalElements: number; totalPages: number; size: number; number: number; first: boolean; numberOfElements: number; }; /** * Represents an empty Page useful for initializing variables while * waiting for the actual Page to be retrieved. */ export declare function emptyPage(): Readonly>; /** * Create a Page of a subset of an array of items. */ export declare function pageOf(content: T[], page?: number, size?: number, oneBased?: boolean): Readonly>; /** * Map a page returned from the back-end to a page of a specific type. * * @param mapper Function to map the items to a specific type */ export declare function mapPage(mapper: (item: T) => R): (page: Page) => Readonly>;