import { ChainKind, type OmniAddress } from "../types/index.js"; /** * Validates if a NEAR address is a recognized omni bridge token * @param nearAddress - The NEAR address to validate * @returns true if the address follows a known omni bridge pattern * * @example * isBridgeToken("foo.omdep.near") // false * isBridgeToken("sol-ABC123.omdep.near") // true * isBridgeToken("random.near") // false */ export declare function isBridgeToken(nearAddress: string): boolean; /** * Parses the origin chain from a NEAR token address format (offline parsing) * * @param nearAddress - The NEAR token address (e.g., "sol-3ZLekZYq2qkZiSpnSvabjit34tUkjSwD1JFuW9as9wBG.omdep.near") * @returns The origin chain kind, or null if pattern is not recognized */ export declare function parseOriginChain(nearAddress: string): ChainKind | null; /** * Converts a token address from one chain to its equivalent on another chain. * For non-NEAR to non-NEAR conversions, the process goes through NEAR as an intermediary. * * @param tokenAddress The source token address to convert * @param destinationChain The target chain for the conversion * @returns Promise resolving to the equivalent token address on the destination chain * @throws Error if source and destination chains are the same * * @example * // Convert NEAR token to ETH * const ethAddress = await getBridgedToken("near:token123", ChainKind.Ethereum) * * // Convert ETH token to Solana (goes through NEAR) * const solAddress = await getBridgedToken("eth:0x123...", ChainKind.Sol) */ export declare function getBridgedToken(tokenAddress: OmniAddress, destinationChain: ChainKind): Promise; //# sourceMappingURL=tokens.d.ts.map