/** A numeric value is either a a number, or a bigint. */ export type Numeric = number | bigint; /** * @returns the product of a and b, coercing b to the type of a if necessary. */ export declare const sub: (a: V, b: Numeric) => V; /** @returns the sum of a and b, coercing b to the type of a if necessary. */ export declare const add: (a: V, b: Numeric) => V; /** @returns true if a is close to b within epsilon. */ export declare const closeTo: (a: number, b: number, epsilon?: number) => boolean; /** @returns true if a is equal to b, coercing b to the type of a if necessary. */ export declare const equal: (a: Numeric, b: Numeric) => boolean; /** * @returns the number rounded to the nearest magnitude of 10. * @example roundToNearestMagnitude(1234) => 1000 * @example roundToNearestMagnitude(12345) => 10000 * @example roundToNearestMagnitude(123456) => 100000 */ export declare const roundToNearestMagnitude: (num: number) => number; /** @returns the minimum of a and b, coercing b to the type of a if necessary. */ export declare const min: (a: V, b: Numeric) => V; export declare const isInteger: (a: Numeric) => boolean; /** @returns the maximum of a and b, coercing b to the type of a if necessary. */ export declare const max: (a: V, b: Numeric) => V; /** @returns the absolute value of a. */ export declare const abs: (a: V) => V; /** @returns the multiplication of a and b, coercing b to the type of a if necessary. */ export declare const mult: (a: V, b: Numeric) => V; /** @returns the division of a and b, coercing b to the type of a if necessary. */ export declare const div: (a: V, b: Numeric) => V; //# sourceMappingURL=math.d.ts.map