import type { IsoPrice } from '../../domain.objects/IsoPrice'; import { IsoPriceExponent } from '../../domain.objects/IsoPriceExponent'; import { IsoPriceRoundMode } from '../../domain.objects/IsoPriceRoundMode'; import type { IsoPriceWords } from '../../domain.objects/IsoPriceWords'; /** * .what = changes the precision of a price to a target exponent * .why = enables precision increase (lossless) and decrease (with round) * * @example * // increase precision (lossless) * setPricePrecision({ of: 'USD 50.37', to: 'micro.x10^-6' }) * // => 'USD 50.370000' * * @example * // decrease precision (requires round) * setPricePrecision({ of: 'USD 5.555', to: 'centi.x10^-2' }) * // => 'USD 5.56' (default half-up) * * @example * // decrease precision with explicit round mode * setPricePrecision({ of: 'USD 5.555', to: 'centi.x10^-2' }, { round: 'floor' }) * // => 'USD 5.55' */ export declare const setPricePrecision: (input: { of: IsoPrice | string; to: IsoPriceExponent; }, options?: { round?: IsoPriceRoundMode; }) => IsoPriceWords;