import { DtoCatalogueParams, DtoCataloguePermission } from "./CatalogueAPI.js"; interface CataloguePermissionByEnterpriseKey { [key: string]: DtoCataloguePermission[]; } export declare const groupAndSortCataloguePermissions: (cataloguePermissions: DtoCataloguePermission[]) => CataloguePermissionByEnterpriseKey; export declare const isParamSet: (param: string | undefined) => boolean; export declare const createCataloguePermissionsFilter: (catParams: Partial) => (perm: DtoCataloguePermission) => boolean; /** * Sometimes you will want to use the latest available prdCatVersion. This method will * find the highest prdCatVersion version in the cataloguePermissions. If the versions are * numeric ("1", "4.3", "0.2") they will be numerically compared, otherwise non localized * string compare. */ export declare const getPrdCatVersionFromPermissions: (cataloguePermissions: DtoCataloguePermission[], catParams: { cid: number | undefined; enterprise: string | undefined; prdCat: string | undefined; priceList: string | undefined; vendor: string | undefined; }) => string | undefined; /** * Sometimes you will want a missing prdCatVersion to represent "Get the current highest version". * This method will, if the prdCatVersion is not set, fetch the highest available from the catalogue * permissions. If it fails to find any applicable permissions the original value is returned. */ export declare const getPrdCatVersionOrLatestFromPermissions: (params: Omit & { cid: number | undefined; }, cataloguePermissions: DtoCataloguePermission[]) => string; /** * Sometimes you will want a missing prdCatVersion to represent "Get the current highest version". * This method will, if the prdCatVersion is not set, fetch the highest available from the * cataloguePermissions and insert it into a copy of the original params. If it fails to find any * applicable auth-permissions the original value is returned. */ export declare const fillMissingPrdCatVersionFromPermissions: (params: T, cataloguePermissions: DtoCataloguePermission[]) => T; export {}; //# sourceMappingURL=utilitiesCataloguePermission.d.ts.map