/** * Reduce a fraction * @param numerator * @param denominator */ export declare function reduceFraction(numerator: number, denominator: number): number[]; /** * Returns a number whose value is limited to the given range. * * Example: limit the output of this computation to between 0 and 255 * clamp((x * 255), 0, 255) * * @param input * @param min The lower boundary of the output range * @param max The upper boundary of the output range * @returns A number in the range [min, max] * @type Number */ export declare function clamp(input?: number, min?: number, max?: number): number; /** * Find the number closest to a target value * @param target The target value * @param values The range of values to check */ export declare function closest(target: number, values: number[]): [number, number]; /** * Get the number of decimal places * @param value */ export declare function getDecimalPlaces(value: number): number; /** * Round to decimal places * @param input - the number to round * @param places - how many decimal places to round to */ export declare function round(input: number, places: number): number; /** * Round to the nearest step * @param input - the number to round * @param step - the step to round to */ export declare function roundToStep(input: number, step: number): number; interface FormatNumberOptions extends Intl.NumberFormatOptions { neutral?: boolean; language?: string; } /** * Format a number into a localised format * * @param input - Number to format * @param options - Formatting options */ export declare function formatNumber(input: number, options?: FormatNumberOptions): string; /** * Format a price or price range to display */ export declare function formatPrice(input: string | string[] | number, options: Omit): string; export {};