/** * Determine if a decimal value is negative by checking the sign bit. * Follows the two's complement representation used in Arrow decimals. * @param value The Uint32Array representing the decimal value * @returns true if the value is negative, false otherwise * @ignore */ export declare function isNegativeDecimal(value: Uint32Array): boolean; /** * Negate a decimal value in-place using two's complement arithmetic. * @param value The Uint32Array to negate * @returns The negated value (modified in-place for efficiency) * @ignore */ export declare function negateDecimal(value: Uint32Array): Uint32Array; /** * Convert a decimal value to a formatted string representation. * Handles both Decimal128 (128-bit) and Decimal256 (256-bit) values. * * @param value The Uint32Array representing the decimal value * @param scale The number of decimal places (digits after the decimal point) * @returns A string representation of the decimal value * * @example * ```ts * import { toDecimalString } from 'apache-arrow'; * * const value = new Uint32Array([1, 0, 0, 0]); * const result = toDecimalString(value, 2); * // Returns: "0.01" * ``` * @ignore */ export declare function toDecimalString(value: Uint32Array, scale: number): string; /** * Convert a decimal value to a number. * Note: This may lose precision for very large decimal values * that exceed JavaScript's 53-bit integer precision. * * @param value The Uint32Array representing the decimal value * @param scale The number of decimal places * @returns A number representation of the decimal value * @ignore */ export declare function toDecimalNumber(value: Uint32Array, scale: number): number; /** * Create a Decimal128 value from a string representation. * @param str String representation (e.g., "123.45") * @param scale The scale (number of decimal places) to use * @returns Uint32Array representing the decimal value * * @example * ```ts * import { fromDecimalString } from 'apache-arrow'; * * const value = fromDecimalString("123.45", 2); * // Returns Uint32Array representing 12345 with scale 2 * ``` * @ignore */ export declare function fromDecimalString(str: string, scale: number): Uint32Array; //# sourceMappingURL=decimal.d.ts.map