/**
 * Copyright (C) 2024 Hedera Hashgraph, LLC
 *
 * Licensed under the Apache License, Version 2.0 (the ""License"");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an ""AS IS"" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
/**
 * Utility class for performing exact arithmetic operations with overflow checking.
 */
export declare class MathEx {
    /**
     * Prevents instantiation of this utility class.
     */
    private constructor();
    /**
     * Returns the sum of the two arguments; throwing an exception if the result overflows a long integer.
     *
     * @param x - The first value
     * @param y - The second value
     * @returns The result of adding the two values
     * @throws ArithmeticError if the result overflows a long integer
     */
    static addExact(x: number, y: number): number;
    /**
     * Returns the difference of the two arguments; throwing an exception if the result overflows a long integer.
     *
     * @param x - The first value
     * @param y - The second value
     * @returns The result of subtracting the two values
     * @throws ArithmeticError if the result overflows a long integer
     */
    static subtractExact(x: number, y: number): number;
    /**
     * Returns the product of the two arguments; throwing an exception if the result overflows a long integer.
     *
     * @param x - The first value
     * @param y - The second value
     * @returns The result of multiplying the two values
     * @throws ArithmeticError if the result overflows a long integer
     */
    static multiplyExact(x: number, y: number): number;
    /**
     * Returns the floor division of the two arguments; throwing an exception if the result overflows a long integer.
     *
     * @param x - The dividend
     * @param y - The divisor
     * @returns The quotient of dividing the two values rounded towards positive infinity.
     */
    static floorDiv(x: number, y: number): number;
    /**
     * Returns the remainder of the floor division of the two arguments; throwing an exception if the result overflows a long integer.
     *
     * @param x - The dividend
     * @param y - The divisor
     * @returns The remainder of dividing the two values rounded towards positive infinity.
     */
    static floorMod(x: number, y: number): number;
}
