/** * Withdrawal network fee helpers (USDT deducted from user ledger). */ import { SystemSettings } from '../models'; /** Canonical micro units for the admin setting (6 decimal places). */ export declare const USDT_FEE_SETTING_DECIMALS = 6; /** @deprecated Use USDT_FEE_SETTING_DECIMALS */ export declare const USDT_DECIMALS = 6; /** * Scales a 6-decimal micro-USDT admin setting to wallet raw units. * Used for withdrawal fees and transfer minimum-remaining balance. */ export declare function scaleUsdtMicroToWalletRaw(micro: number, walletDecimals?: number): bigint; /** * Returns the configured network fee in smallest units for the given wallet decimals. * Setting is stored as 6-decimal micro-USDT; scaled when wallet decimals differ (e.g. BEP20 18). */ export declare function getWithdrawalNetworkFeeRaw(settings: SystemSettings, walletDecimals?: number): bigint; /** * Minimum remaining main-wallet balance after a peer transfer (0 = disabled). * Stored as 6-decimal micro-USDT; scaled to wallet decimals when needed. */ export declare function getTransferMinRemainingRaw(settings: SystemSettings, walletDecimals?: number): bigint; /** * Formats a raw USDT amount for display (trims trailing zeros). */ export declare function formatUsdtRawHuman(raw: bigint, decimals?: number): string; //# sourceMappingURL=withdrawalFee.d.ts.map