import { Address } from "../types"; /** * Type guard to check if an address is valid and non-empty after trimming. * Note: This function checks if the trimmed value of the address is valid, but does not guarantee that the input address itself is trimmed. * If you require a trimmed address, use `getValidAddress(address)` to obtain the trimmed value. * @param address The address to validate * @returns true if the trimmed address is valid and non-empty, false otherwise. * @remarks * This type guard only ensures that the trimmed value is a valid Address. The original input may still contain leading or trailing whitespace. */ export declare const isValidAddress: (address: Address | null | undefined) => address is Address; /** * Validates and returns a trimmed valid address. * This function trims the input address and validates it, returning the trimmed value if valid. * @param address The address to validate and trim * @returns The trimmed address if valid, null otherwise * @remarks * This function is the preferred way to get a validated, trimmed address for use in your application. */ export declare const getValidAddress: (address: Address | null | undefined) => string | null; /** * Checks if an address is in the blocked list and should not emit events. * Blocked addresses include the zero address and dead address which are not normal user addresses. * @param address The address to check * @returns true if the address is blocked, false otherwise */ export declare const isBlockedAddress: (address: Address | null | undefined) => boolean; export declare const toChecksumAddress: (address: Address) => string; /** * Validates an EVM address and returns it in checksummed format. * @param address The address to validate * @returns The checksummed address or undefined if invalid */ export declare const validateAndChecksumAddress: (address: string) => Address | undefined; /** * Validates an address for both EVM and Solana chains. * For EVM addresses, returns checksummed format. * For Solana addresses, returns the Base58 address as-is. * * When chainId is explicitly provided, validation is strict: * - Solana chainId → only Solana validation * - Non-Solana chainId → only EVM validation * When chainId is omitted, EVM is tried first with Solana fallback. * * @param address The address to validate * @param chainId Optional chain ID to determine address type * @returns The validated address or undefined if invalid */ export declare const validateAddress: (address: string, chainId?: number) => Address | undefined; //# sourceMappingURL=address.d.ts.map