import type { IsoPrice } from '../../domain.objects/IsoPrice'; import type { IsoPriceShape } from '../../domain.objects/IsoPriceShape'; import type { IsoPriceWords } from '../../domain.objects/IsoPriceWords'; /** * .what = calculates the standard deviation of an array of prices * .why = enables statistical analysis of price variance with precision safety * * uses population standard deviation formula: sqrt(sum((x - mean)^2) / n) * * @example * calcPriceStdev(['USD 10.00', 'USD 20.00', 'USD 30.00']) * // => 'USD 8.16' (approx) * * @example * calcPriceStdev(['USD 10.00', 'USD 20.00'], { format: 'shape' }) * // => { amount: 500n, currency: 'USD', exponent: 'centi.x10^-2' } */ export declare function calcPriceStdev(prices: (IsoPrice | string)[], options?: { format?: 'words'; }): IsoPriceWords; export declare function calcPriceStdev(prices: (IsoPrice | string)[], options: { format: 'shape'; }): IsoPriceShape;