import ICart, { ICartItem } from '../../../Interfaces/Cart'; import Space from '../../../lib/Space'; import { IFilledDimensionUnits } from '../../../Interfaces/Declination'; export declare const shouldHidePrices: (space: Space, isPro: boolean, paidAt: Date) => boolean; /** * Get deconstructed item inventory for specific units, from largest to smallest * @deprecated testing V2 version of function * @param item * @param showUnits Optionnal. If false, 'unite' unit quantities are added to 'mcx' unit values if 'mcx' is defined for item * @param isInventoryQty Optionnal. If false, item qty is converted to inventory unit quantities before checks * @returns {{unit:string,qty:number}[]} */ export declare const getFittingUnits: (item: ICartItem, showUnits?: boolean, isInventoryQty?: boolean) => { unit: string; qty: number; }[]; /** * TEST - Same function, but uses getQty function instad of usual logic. * @description Get deconstructed item inventory for specific units, from largest to smallest * @param otherUnits * @param qte * @param unitsToCheck Array of units to check for item. Based on space defined properties for product units * @param options.showUnits Optionnal. If false, 'unite' unit quantities are added to 'mcx' unit values if 'mcx' is defined for item * @param options.isInventoryQty Optionnal. If false, item qty is converted to inventory unit quantities before checks * @param options.isGrassItem Optionnal. Used to return roul instead of rg for grass items * @returns {{unit:string,qty:number}[]} */ export declare const getFittingUnitsV2: (otherUnits: IFilledDimensionUnits[] | undefined, qte: number, unitsToCheck: { slug: string; roundToOneQte: boolean; }[] | undefined, options?: { showUnits?: boolean; isInventoryQty?: boolean; isGrassItem?: boolean; }) => { unit: string; qty: number; }[]; /** * Returns string corresponding to provided cart's type. * @param cartData - Corresponding cart * @param options.frOnly - If true, forces french string, * @param options.slugSafe - If true, will always return a slug-safe string (with string_to_slug) * @param options.installAsType - If true, will consider grass installs as a type * @returns a string containing the order type */ export declare const getOrderTypeString: (cartData: ICart, options?: { frOnly?: boolean; slugSafe?: boolean; installAsType?: boolean; }) => string;