import { AdapterState, WalletReadyState, AddonAdapter } from '@tronweb3/tronwallet-abstract-adapter'; import type { Transaction, SignedTransaction, AdapterName, BaseAdapterConfig, Network } from '@tronweb3/tronwallet-abstract-adapter'; import type { TronLinkWallet } from '@tronweb3/tronwallet-adapter-tronlink'; declare global { interface Window { bybitWallet?: { tronLink: TronLinkWallet; }; } } export type BybitWalletAdapterConfig = BaseAdapterConfig; export declare const BybitWalletAdapterName: AdapterName<"Bybit Wallet">; export declare class BybitWalletAdapter extends AddonAdapter { name: AdapterName<"Bybit Wallet">; url: string; icon: string; config: Required; private _readyState; private _state; private _connecting; private _wallet; private _address; constructor(config?: BybitWalletAdapterConfig); get address(): string | null; get state(): AdapterState; get readyState(): WalletReadyState; get connecting(): boolean; /** * Get network information used by BybitWallet. * @returns {Network} Current network information. */ network(): Promise; protected _connect(): Promise; disconnect(): Promise; signTransaction(transaction: Transaction): Promise; multiSign(transaction: Transaction, options?: { permissionId?: number; }): Promise; signMessage(message: string): Promise; private checkAndGetWallet; private _listenEvent; private _stopListenEvent; private _accountsChangedTimer; /** * Incremented whenever the listening session ends. Deferred `accountsChanged` * work and the awaited `connect` handler capture the value before they yield and * abandon themselves if it no longer matches, so an event that started before * `disconnect()` cannot write state after it. */ private _eventGeneration; private messageHandler; private checkIfOpenBybitWallet; protected _openAppByDeepLinkIfNeed(): boolean; private _checkPromise; /** * Detection polls for the full `checkTimeout` only once. Later attempts re-check a * single time, so retrying is free when the wallet is genuinely absent. */ private _hasRunInitialDetection; /** * check if wallet exists by interval, the promise only resolve when wallet detected or timeout * @returns if BybitWallet exists */ protected _checkWallet(): Promise; private _updateWallet; private setAddress; private setState; } //# sourceMappingURL=adapter.d.ts.map