export default function paginate(totalItems: number, currentPage?: number, pageSize?: number): {
  pages: number[];
  endPage: number;
  endIndex: number;
  pageSize: number;
  startPage: number;
  totalPages: number;
  startIndex: number;
  totalItems: number;
  currentPage: number;
};
