import { P as PaywallNetworkHandler } from '../types-BZP2rcES.cjs'; /** * Dynamic TON Connect wallet registry integration. * * Fetches the official wallet list from ton-blockchain/wallets-list, * with a bundled fallback for offline/error scenarios. */ /** * Platform types supported by TON Connect wallets */ type TonWalletPlatform = "ios" | "android" | "chrome" | "firefox" | "safari" | "windows" | "macos" | "linux"; /** * TON wallet bridge configuration */ interface TonWalletBridge { type: "sse" | "js"; url?: string; key?: string; } /** * Information about a TON Connect compatible wallet */ interface TonWalletInfo { /** Display name */ name: string; /** Machine-readable identifier */ appName: string; /** Wallet icon URL */ imageUrl: string; /** Wallet info page */ aboutUrl: string; /** Supported platforms */ platforms: TonWalletPlatform[]; /** Bridge configurations */ bridges: TonWalletBridge[]; /** Universal link for connection */ universalUrl?: string; /** Native deep link scheme */ deepLink?: string; } /** * Fetch the official TON Connect wallets list with caching. * Falls back to bundled snapshot if the fetch fails. * * @param cacheTTL - Cache duration in milliseconds (default: 1 hour) * @returns Array of wallet information */ declare function fetchTonWallets(cacheTTL?: number): Promise; /** * Get the bundled wallet list synchronously (no network request). * * @returns Bundled wallet list */ declare function getBundledWallets(): TonWalletInfo[]; /** * Reset the in-memory wallet cache. * Useful for testing or forcing a fresh fetch. */ declare function resetWalletsCache(): void; /** * Filter wallets by the detected platform. * * @param wallets - Full wallet list * @param platform - Target platform * @returns Wallets that support the given platform */ declare function filterWalletsByPlatform(wallets: TonWalletInfo[], platform: "ios" | "android" | "desktop" | "browser"): TonWalletInfo[]; /** * Generate a deep link or universal link for a wallet. * * @param wallet - Wallet info * @param connectUrl - TON Connect session URL * @returns Link string, or null if the wallet has no link support */ declare function generateWalletDeepLink(wallet: TonWalletInfo, connectUrl: string): string | null; /** * TON paywall handler that supports TON-based networks (CAIP-2 format) */ declare const tonPaywall: PaywallNetworkHandler; export { type TonWalletBridge, type TonWalletInfo, type TonWalletPlatform, fetchTonWallets, filterWalletsByPlatform, generateWalletDeepLink, getBundledWallets, resetWalletsCache, tonPaywall };