/** * Decimal represents a decimal number with arbitrary precision. * Used for monetary computations in NeoFS to avoid floating point precision issues. */ export declare class Decimal { private value; private precision; constructor(value: bigint | number | string, precision: number); /** * Creates a Decimal from a protobuf message. */ static fromProtoMessage(proto: any): Decimal; /** * Converts to protobuf message. */ toProtoMessage(): any; /** * Gets the raw value as a bigint. */ getValue(): bigint; /** * Gets the precision (number of decimal places). */ getPrecision(): number; /** * Converts to a JavaScript number (may lose precision). */ toNumber(): number; /** * Converts to a string representation. */ toString(): string; /** * Adds another Decimal to this one. */ add(other: Decimal): Decimal; /** * Subtracts another Decimal from this one. */ subtract(other: Decimal): Decimal; /** * Multiplies this Decimal by another. */ multiply(other: Decimal): Decimal; /** * Divides this Decimal by another. */ divide(other: Decimal): Decimal; /** * Compares this Decimal with another. * @returns -1 if this < other, 0 if equal, 1 if this > other */ compare(other: Decimal): number; /** * Checks if this Decimal equals another. */ equals(other: Decimal): boolean; /** * Checks if this Decimal is zero. */ isZero(): boolean; /** * Checks if this Decimal is positive. */ isPositive(): boolean; /** * Checks if this Decimal is negative. */ isNegative(): boolean; }