/** * Perform financially accurate multiplication */ export declare function multiply(a: number | string, b: number | string): number; /** * Perform financially accurate addition */ export declare function add(a: number | string, b: number | string): number; /** * Perform financially accurate subtraction */ export declare function subtract(a: number | string, b: number | string): number; /** * Perform financially accurate division */ export declare function divide(a: number | string, b: number | string): number; /** * Calculate percentage */ export declare function percentage(value: number | string, percent: number | string): number; /** * Round to specified number of decimal places */ export declare function round(value: number | string, decimalPlaces?: number): number; /** * Calculate basic billing * Supports quantity * price with proper decimal precision */ export declare function calculateBasicBilling(quantity: number | string, price: number | string): number; /** * Calculate tiered billing (simplified version) * This assumes a simple tiering structure where the entire quantity is billed at * the appropriate tier rate based on the quantity. * * @param quantity - The quantity to bill * @param tiers - Array of {threshold, rate} objects, sorted by threshold ascending */ export declare function calculateTieredBilling(quantity: number | string, tiers: Array<{ threshold: number; rate: number; }>): number; /** * Calculate graduated tiered billing * This calculates billing where each tier applies only to the quantity * within that tier's range. * * @param quantity - The quantity to bill * @param tiers - Array of {min, max, rate} objects, sorted by min ascending */ export declare function calculateGraduatedBilling(quantity: number | string, tiers: Array<{ min: number; max: number | null; rate: number; }>): number;