/** * tablePaginationHelpers.js * * Provides exportable utility functions to help with pagination logic. * * It makes sense to put functions here that do not have any dependencies in the * primary TablePagination component and/or that we might want to allow * consumers of the library to import and use for the sake of convenience. */ /** * Transform row data into a paginated object (rows separated by page key). * * @param {array} rows Array of row objects * @param {number} rowsPerPage * @returns {object} */ declare const getPaginatedData: (rows: any, rowsPerPage: any) => any; /** * Retrieves a specific page from a pagination object that is transformed from * a typical array of row data. * * @param {array} rows Array of row objects * @param {number} page * @param {number} rowsPerPage * @returns {array} Array of row objects pertaining to the chosen page */ declare const getDisplayRowsFromPaginatedData: (rows: any, page: any, rowsPerPage: any) => any; export { getPaginatedData, getDisplayRowsFromPaginatedData };