/** * Converts an API decimal string (human units, e.g. `"1250.5"`) into base-unit * bigint at the given token decimals (e.g. `1250500000n` for 6 decimals). * * The conversion is exact: a value with more significant fractional digits * than `decimals` throws `DecimalPrecisionError` rather than rounding. * Hand-rolled instead of viem's `parseUnits`, which silently rounds excess * precision (`parseUnits('1.0000005', 6)` → `1000001n`) — unacceptable for * financial amounts. */ export declare function decimalToBigInt(value: string, decimals: number): bigint; /** * Formats a base-unit bigint back into the API's human decimal-string * representation (no trailing fractional zeros, no exponent notation). */ export declare function bigIntToDecimal(value: bigint, decimals: number): string; /** Vault shares are always reported in 18-decimal units by the Gaia API. */ export declare const SHARE_DECIMALS = 18; /** Parses an API share amount (decimal string) into base-unit bigint (1e18). */ export declare function sharesToBigInt(value: string): bigint; //# sourceMappingURL=decimal.d.ts.map