import { ethers } from "ethers"; /** * Args for resolving an EVM address */ export interface ResolveEvmAddressArgs { /** Account name to use if address not provided */ accountName?: string; /** An EVM address to validate */ evmAddress?: string; /** Function to handle errors */ handleError?: () => void; } /** * Resolve an EVM address from either a direct input or account name */ export declare const resolveEvmAddress: ({ evmAddress, accountName, handleError, }: ResolveEvmAddressArgs) => string | undefined; /** * Args for resolving a Solana address */ export interface ResolveSolanaAddressArgs { /** Account name to use if address not provided */ accountName?: string; /** Function to handle errors */ handleError?: () => void; /** A Solana address to validate */ solanaAddress?: string; } /** * Resolve a Solana address from either a direct input or account name */ export declare const resolveSolanaAddress: ({ solanaAddress, accountName, handleError, }: ResolveSolanaAddressArgs) => string | undefined; /** * Args for resolving a Bitcoin address */ export interface ResolveBitcoinAddressArgs { /** Account name to use if address not provided */ accountName?: string; /** A Bitcoin address to validate */ bitcoinAddress?: string; /** Function to handle errors */ handleError?: () => void; /** Whether to use mainnet or testnet */ isMainnet?: boolean; } /** * Resolve a Bitcoin address from a direct input or account name */ export declare const resolveBitcoinAddress: ({ bitcoinAddress, accountName, isMainnet, handleError, }: ResolveBitcoinAddressArgs) => string | undefined; /** * Args for resolving a Sui address */ export interface ResolveSuiAddressArgs { /** Account name to use if address not provided */ accountName?: string; /** Function to handle errors */ handleError?: () => void; /** A Sui address to validate */ suiAddress?: string; } /** * Resolve a Sui address from either a direct input or account name */ export declare const resolveSuiAddress: ({ suiAddress, accountName, handleError, }: ResolveSuiAddressArgs) => string | undefined; /** * Args for resolving a TON address */ export interface ResolveTonAddressArgs { /** Account name to use if address not provided */ accountName?: string; /** Function to handle errors */ handleError?: () => void; /** A TON address to validate */ tonAddress?: string; } /** * Resolve a TON address from either a direct input or account name */ export declare const resolveTONAddress: ({ tonAddress, accountName, handleError, }: ResolveTonAddressArgs) => string | undefined; /** * Attempts to extract and checksum‑encode a valid 20‑byte EVM address from the * supplied bytes‑hex string. If none can be found, returns `null`. */ export declare const tryParseEvmAddress: (bytesHex: string) => string | null; /** * Formats a bytes‑hex string as either an EVM address or ASCII text. * First attempts to parse as an EVM address, then falls back to ASCII decoding. */ export declare const formatAddress: (bytesHex: string) => string; /** * For Sui chains (chain IDs 103 and 105), contract addresses are 64 bytes (128 hex chars) * representing two concatenated 32-byte values. Split them and display on separate lines. */ export declare const splitSuiCombinedAddress: (bytesHex: string) => string; /** * Formats an address based on the chain ID, applying chain-specific formatting rules. * For Sui chains (103, 105), splits combined addresses; otherwise uses standard formatting. */ export declare const formatAddressForChain: (bytesHex: string, chainId: ethers.BigNumberish) => string;