/** * VeChain Unit Converter Utility * * VeChain uses the same unit system as Ethereum: * - 1 VET = 10^18 wei * - 1 VTHO = 10^18 wei * * Common units: * - wei: smallest unit * - kwei: 10^3 wei * - mwei: 10^6 wei * - gwei: 10^9 wei * - ether/VET/VTHO: 10^18 wei */ /** * Convert from one unit to another */ export declare function convertUnits(value: string | number | bigint, fromUnit: string, toUnit: string): string; /** * Convert wei to VET */ export declare function weiToVet(wei: string | bigint): string; /** * Convert VET to wei */ export declare function vetToWei(vet: string | number): string; /** * Convert wei to VTHO */ export declare function weiToVtho(wei: string | bigint): string; /** * Convert VTHO to wei */ export declare function vthoToWei(vtho: string | number): string; /** * Format token amount with decimals */ export declare function formatTokenAmount(amount: string | bigint, decimals: number): string; /** * Parse token amount with decimals */ export declare function parseTokenAmount(amount: string | number, decimals: number): string; /** * Format VET amount for display */ export declare function formatVet(wei: string | bigint, precision?: number): string; /** * Format VTHO amount for display */ export declare function formatVtho(wei: string | bigint, precision?: number): string; /** * Add commas to large numbers for readability */ export declare function addCommas(value: string): string; //# sourceMappingURL=unitConverter.d.ts.map