import { Dictionary } from "../../types/dictionary.types.js";
import { ResponseWithSession } from "../../middlewares/sessionAuth.middleware.js";
import { FiltersAndPagination } from "./getFiltersAndPaginationFromBody.js";
import * as mongoose92 from "mongoose";
import { RootFilterQuery } from "mongoose";
import { Request } from "express";

//#region src/utils/filtersAndPagination/getDictionaryFiltersAndPagination.d.ts
type DictionaryFiltersParams = {
  ids?: string | string[];
  projectId?: string;
  projectIds?: string[];
  organizationId?: string;
  organizationIds?: string[];
  userId?: string;
  userIds?: string[];
  creatorId?: string;
  creatorIds?: string[];
  title?: string;
  description?: string;
  key?: string;
  keys?: string[];
  tags?: string | string[];
  version?: string;
  search?: string;
  sortBy?: string;
  sortOrder?: string;
  /**
   * For admin users, if true, will fetch all users without filtering by organization
   */
  fetchAll?: 'true' | 'false';
};
type DictionaryFilters = RootFilterQuery<Dictionary>;
/**
 * 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 getDictionaryFiltersAndPagination: (req: Request<FiltersAndPagination<DictionaryFiltersParams>>, res: ResponseWithSession) => {
  page: number;
  skip: number;
  pageSize: number;
  getNumberOfPages: (totalItems: number) => number;
  filters: mongoose92.FilterQuery<Dictionary>;
  sortOptions: Record<string, 1 | -1>;
};
//#endregion
export { DictionaryFilters, DictionaryFiltersParams, getDictionaryFiltersAndPagination };
//# sourceMappingURL=getDictionaryFiltersAndPagination.d.ts.map