/** * @typedef PageInfo * @property {number} startIndex The visual index of the first item in the page. * @property {number} endIndex The visual index of the last item in the page. * @property {number} pageSize The number of items in the page. */ /** * The module computes the state of pagination based on a fixed page size. * * @class FixedPageSizeStrategy * @private */ export declare class FixedPageSizeStrategy { /** * The fixed page size. * * @type {number} */ pageSize: number; /** * Total number of items in the dataset. * * @type {number} */ totalItems: number; /** * Total number of pages. * * @type {number} */ totalPages: number; /** * Calculates the state of pagination. * * @param {object} options Options for pagination calculation. * @param {number} options.pageSize The fixed number of items per page. * @param {number} options.totalItems The total number of items in the dataset. */ calculate({ pageSize, totalItems }: { pageSize: number; totalItems: number; }): void; /** * Gets the total number of pages. * * @returns {number} The total number of pages. */ getTotalPages(): number; /** * Gets the state of a specific page. * * @param {number} currentPage The current page number (1-based index). * @returns {PageInfo | undefined} */ getState(currentPage: number): { startIndex: number; endIndex: number; pageSize: number; } | undefined; }