import { ObjectId } from "mongoose";
import { Request } from "express";

//#region src/utils/filtersAndPagination/getFiltersAndPaginationFromBody.d.ts
type Filters = Record<string, string | string[] | ObjectId | ObjectId[]>;
type FiltersAndPagination<T extends Filters> = ({
  page?: string | number;
  pageSize?: string | number;
} & T) | undefined;
type FiltersAndPaginationResult<T extends Filters> = {
  filters: T;
  page: number;
  skip: number;
  pageSize: number;
  getNumberOfPages: (totalItems: number) => number;
};
/**
 * Extracts filters and pagination information from the request body.
 * @param req - Express request object.
 * @returns Object containing filters, page, pageSize, and getNumberOfPages functions.
 */
declare const getFiltersAndPaginationFromBody: <T extends Filters>(req: Request<FiltersAndPagination<T>>) => FiltersAndPaginationResult<T>;
//#endregion
export { FiltersAndPagination, FiltersAndPaginationResult, getFiltersAndPaginationFromBody };
//# sourceMappingURL=getFiltersAndPaginationFromBody.d.ts.map