import { Tag } from "../../types/tag.types.js";
import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
import * as mongoose94 from "mongoose";
import { RootFilterQuery } from "mongoose";
import { Request } from "express";

//#region src/utils/filtersAndPagination/getTagFiltersAndPagination.d.ts
type TagFiltersParams = {
  ids?: string | string[];
  keys?: string | string[];
  name?: string;
  search?: string;
  organizationId?: string;
  /**
   * For admin users, if true, will fetch all tags without filtering by organization
   */
  fetchAll?: 'true' | 'false';
};
type TagFilters = RootFilterQuery<Tag>;
/**
 * 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 getTagFiltersAndPagination: (req: Request<FiltersAndPagination<TagFiltersParams>>, res: ResponseWithSession) => {
  page: number;
  skip: number;
  pageSize: number;
  getNumberOfPages: (totalItems: number) => number;
  filters: mongoose94.FilterQuery<Tag>;
  sortOptions: Record<string, 1 | -1>;
};
//#endregion
export { TagFilters, TagFiltersParams, getTagFiltersAndPagination };
//# sourceMappingURL=getTagFiltersAndPagination.d.ts.map