/** * Format a given Ethereum address to a human-readable representation. * @param address The address to format. * @param opts.truncateTo The number of characters to include either side of the elipsis (...). * @returns The formatted string e.g. 0x0000...0000 */ export declare function formatEthAddress(address: string, { truncateTo, }?: { truncateTo?: number; }): string; /** * Converts numerical wei to a string representation of Ether. * This function wraps viem's formatEther. * @see https://viem.sh/docs/utilities/formatEther.html * @param wei the Ether value in wei (fixed-point number with 18 decimals) * @param opts.fractionDigits The number of * @returns */ export declare function formatEther(wei: bigint, opts?: { fractionDigits?: number; }): string; /** * Divides a number by a given exponent of base 10 (10^exp), and formats it into a string representation of the number. * This function wraps viem's formatUnits. * @see https://viem.sh/docs/utilities/formatUnits.html * @param value The value to format. * @param units The units of the value. * @param opts.fractionDigits The number of fraction digits (i.e. decimal places) to format to. * @returns Formatted representation of [value]. */ export declare function formatUnits(value: bigint, units: number, opts?: { fractionDigits?: number; }): string; //# sourceMappingURL=format.d.ts.map