/** * Response formatters for AgentPay MCP tools. * Converts on-chain bigint/hex values to human-readable MCP content. */ import type { Address, Hash } from 'viem'; /** * Format a bigint wei amount as a readable ETH string. * e.g., 1000000000000000000n → "1.000000 ETH" */ export declare function formatEth(wei: bigint): string; /** * Format a bigint token amount with the given decimals. * e.g., 1000000n with decimals=6 → "1.000000 USDC" */ export declare function formatToken(amount: bigint, decimals: number, symbol: string): string; /** * Format a bigint as a readable ETH or "N/A" if zero/unlimited. * Used for spend limits where 0 means "no autonomous spending allowed". */ export declare function formatSpendLimit(wei: bigint): string; /** * Format an address with a label. Truncates middle for readability. */ export declare function formatAddress(address: Address): string; /** * Format a full address (for display in detailed outputs). */ export declare function formatAddressFull(address: Address): string; /** * Format seconds as human-readable duration. */ export declare function formatDuration(seconds: number): string; /** * Format a Unix timestamp as ISO string. */ export declare function formatTimestamp(ts: number): string; /** * Get a utilization badge based on percentage used. */ export declare function utilizationBadge(pct: number): string; export declare function chainName(chainId: number): string; export declare function explorerTxUrl(txHash: Hash, chainId: number): string; export declare function explorerAddressUrl(address: Address, chainId: number): string; /** * Create a standard MCP text content block. */ export declare function textContent(text: string): { type: 'text'; text: string; }; /** * Format an error into a human-readable MCP error response text. */ export declare function formatError(error: unknown, context: string): string; /** * Format a success message with optional details. */ export declare function formatSuccess(message: string, details?: Record): string; //# sourceMappingURL=format.d.ts.map