import type { IsoPrice } from '../../domain.objects/IsoPrice'; import type { IsoPriceShape } from '../../domain.objects/IsoPriceShape'; import type { IsoPriceWords } from '../../domain.objects/IsoPriceWords'; /** * .what = calculates the average of an array of prices * .why = enables statistical analysis of price data with precision safety * * @example * calcPriceAvg(['USD 10.00', 'USD 20.00', 'USD 30.00']) * // => 'USD 20.00' * * @example * calcPriceAvg(['USD 10.00', 'USD 20.00'], { format: 'shape' }) * // => { amount: 1500n, currency: 'USD', exponent: 'centi.x10^-2' } */ export declare function calcPriceAvg(prices: (IsoPrice | string)[], options?: { format?: 'words'; }): IsoPriceWords; export declare function calcPriceAvg(prices: (IsoPrice | string)[], options: { format: 'shape'; }): IsoPriceShape;