import { PaginatedResult } from '../models/pagination.model'; /** * Paginates an array by returning a specific slice based on the page number and page size. * If the requested page is less than 1, it defaults to page 1. * * @template T - The type of items in the array. * @param data - The source array to paginate. * @param page - The current page number (1-based index). * @param size - The number of items to display per page. * @returns A PaginatedResult containing the data slice and metadata. */ export declare const paginate: (data: T[], page: number, size: number) => PaginatedResult;