import type { IsoPrice } from '../../domain.objects/IsoPrice'; import type { IsoPriceExponent } from '../../domain.objects/IsoPriceExponent'; import type { IsoPriceRoundMode } from '../../domain.objects/IsoPriceRoundMode'; import type { IsoPriceWords } from '../../domain.objects/IsoPriceWords'; /** * .what = rounds a price to a target precision * .why = semantic alias for setPricePrecision when precision decrease is intended * * this is syntactic sugar for the common case of a precision reduction. * use setPricePrecision directly if you need to increase precision. * * @example * roundPrice({ of: 'USD 50.375', to: 'centi.x10^-2' }) * // => 'USD 50.38' (default half-up) * * @example * roundPrice({ of: 'USD 50.375', to: 'centi.x10^-2' }, { round: 'floor' }) * // => 'USD 50.37' */ export declare const roundPrice: (input: { of: IsoPrice | string; to: IsoPriceExponent; }, options?: { round?: IsoPriceRoundMode; }) => IsoPriceWords;