/** * Tron Wallet Discovery * * Discovers Tron wallets by checking injected providers on the window object. * Different wallets inject at different paths: * - TronLink: window.tronLink * - TokenPocket: window.tokenpocket * - Trust Wallet: window.trustWallet.tronLink * * Each provider has a `tronWeb` property containing the TronWeb API. */ import type { WalletMetadata } from '@meshconnect/uwc-types'; export interface TronWeb { defaultAddress?: { base58?: string | false; hex?: string | false; }; /** Async accessor for defaultAddress, used by bridge providers */ getDefaultAddress?(): Promise<{ base58?: string | false; hex?: string | false; }>; trx: { sign(transaction: unknown): Promise; signMessageV2(message: string): Promise; sendRawTransaction(signedTransaction: unknown): Promise; }; transactionBuilder: { sendTrx(to: string, amount: number, from: string): Promise; triggerSmartContract(contractAddress: string, functionSelector: string, options: Record, parameter: Array<{ type: string; value: any; }>, issuerAddress: string): Promise<{ transaction: any; result: { result: boolean; }; }>; }; toHex(message: string): string; [key: string]: any; } export interface TronProvider { ready: boolean; request?(params: { method: string; params?: unknown; }): Promise; tronWeb: TronWeb; [key: string]: any; } export interface DetectedTronWallet { uuid: string; name: string; injectedId: string; provider: TronProvider; } /** * Discovers Tron wallets by checking known injection paths on the window object. * When running inside an iframe with the UWC bridge, checks for bridge-proxied * wallets first. Otherwise checks injected providers on the window object. */ export declare function getTronWallets(expectedWallets?: WalletMetadata[]): Promise; //# sourceMappingURL=tron-discovery.d.ts.map