/** * How many decimal places a sku's quantities are meaningful to, in its BASE * unit. * * The figure belongs to the unit — `FdoInventoryUnit.precision`, the same field * the unit editor writes and every quantity input already validates against, so * a display that rounds harder than the form allows is a display that hides a * quantity someone was permitted to enter. Reached through * `getAllowedPrecision` rather than off the field directly, because that helper * is the portal's one statement of what "allowed precision" means and it is * where the measurement-relative rule lives should a caller ever need it. * * **No measurement argument on purpose.** Everything the ingredient tree renders * has already been converted to base units by the projection, so the base * unit's own precision is the right increment. Passing a measurement here would * answer a different question — how finely a quantity may be TYPED in grams — * and silently widen every figure on the screen. * * Resolution is by sku rather than by unit abbrev: two units can print the same * short string, and the projection rows carry ids, not units. * * Null when the sku is not in the catalogue — an unresolved unit, not a unit * with no decimals. Callers hand that straight to `formatQuantity`, which falls * back to what this module rendered at before precision was unit-derived. */ export declare function quantityPrecisionOf(sku: FdoInventorySku): number; /** * The same rule, reached by id, for the surfaces that hold projection rows * rather than skus. {@link quantityPrecisionOf} is the rule; this is the lookup. */ export declare function useQuantityPrecision(): (skuId: string) => number | null;