import { Storage, ExtendedWalletConnectPairingResponse, StorageKey, WalletConnectPairingRequest, NetworkType, TransportType } from '@ecadlabs/beacon-types'; import { Transport } from '@ecadlabs/beacon-core'; import { SignClientTypes } from '@walletconnect/types'; import { ExposedPromise, KeyPair } from '@ecadlabs/beacon-utils'; import { WalletConnectCommunicationClient } from './communication-client/WalletConnectCommunicationClient'; /** * @internalapi * * */ export declare class WalletConnectTransport extends Transport { private readonly wcOptions; private readonly isLeader; readonly type: TransportType; protected isReady: ExposedPromise; constructor(name: string, _keyPair: KeyPair, storage: Storage, storageKey: K, wcOptions: { network: NetworkType; opts: SignClientTypes.Options; }, isLeader: Function); static isAvailable(): Promise; /** * Returns a promise that blocks the execution flow when awaited if the transport hasn't resolved yet; otherwise, it returns true. */ waitForResolution(): Promise; connect(): Promise; wasDisconnectedByWallet(): boolean; closeClient(): void; hasPairings(): Promise; hasSessions(): Promise; /** * Forcefully updates any DApps running on the same session * Typical use case: localStorage changes to reflect to indexDB * @param type the message type */ forceUpdate(type: string): void; getPeers(): Promise; disconnect(): Promise; startOpenChannelListener(): Promise; doClientCleanup(): Promise; getPairingRequestInfo(): Promise; listen(publicKey: string): Promise; }