import { Transaction } from '@ton/core'; import { Address, ExternalAddress } from '@ton/core'; export type AddressMapFunc = (address: Address | ExternalAddress | null | undefined) => string | null | undefined; /** * @param tx Transaction to create log string * @param mapFunc Optional function to map addresses to human-readable strings * @returns Transaction log string */ export declare function prettyLogTransaction(tx: Transaction, mapFunc?: AddressMapFunc): string; /** * Log transaction using `console.log`. Logs are generated based on result of {@link prettyLogTransaction}. * * @example No mapping * ``` * null ➡️ EQBGhqLAZseEqRXz4ByFPTGV7SVMlI4hrbs-Sps_Xzx01x8G * ➡️ 0.05 💎 EQC2VluVfpj2FoHNMAiDMpcMzwvjLZxxTG8ecq477RE3NvVt * ``` * * @example With mapping * ``` * null ➡️ Torch's Wallet * ➡️ 0.05 💎 Alan's Wallet * ``` * * @param txs Transactions to log * @param mapFunc Optional function to map address to a human-readable format. If provided, addresses will be mapped; otherwise, raw addresses will be displayed. */ export declare function prettyLogTransactions(txs: Transaction[], mapFunc?: AddressMapFunc): void;