import { DappMetadata } from '@phoenix-wallet/core'; import { Connector } from '@phoenix-wallet/core'; import { ChainType, IChain } from '@phoenix-wallet/core'; import { BaseWalletAdapter } from '@solana/wallet-adapter-base'; import { SolanaWalletClient } from './SolanaWalletClient'; import { Connection } from '@solana/web3.js'; /** * Solana cluster types * * @public */ export declare enum SolanaCluster { /** Mainnet Beta - Production network */ MAINNET = "mainnet-beta", /** Devnet - Development network with free airdrops */ DEVNET = "devnet", /** Testnet - Testing network */ TESTNET = "testnet", /** Localnet - Local validator */ LOCALNET = "localnet" } /** * Solana wallet connector * * Provides connectivity to Solana wallets using the wallet-standard interface. * Compatible with all wallet-adapter wallets including Phantom, Solflare, * Backpack, Ledger, and more. * * Supports mainnet, devnet, testnet, and localnet clusters. * * @example Using with Phantom * ```typescript * import { PhantomWalletAdapter } from '@solana/wallet-adapter-phantom'; * * const connector = new SolanaConnector( * dappMetadata, * new PhantomWalletAdapter(), * SolanaCluster.MAINNET, * ['solana_mainnet_beta'] * ); * * const { address } = await connector.connect(); * console.log('Connected:', address); * ``` * * @public */ export declare class SolanaConnector extends Connector { protected activeAddress: string | undefined; protected isInitialized: boolean; adapter: BaseWalletAdapter; cluster: SolanaCluster; constructor(dappMetadata: DappMetadata, adapter: BaseWalletAdapter, defaultCluster: SolanaCluster | undefined, supportedChains: string[]); init(): Promise; isInstalled(): Promise; get chainType(): ChainType; connect(): Promise<{ address: string; chainId: string; }>; disconnect(): Promise; getConnectedAddresses(): Promise; private get _chainId(); getChainId(): Promise; setupEventListeners(): Promise; isConnected(): Promise; createWalletClient(chain: IChain): SolanaWalletClient; createPublicClient(chain: IChain): Connection; get installLink(): string; switchChainId(chainId: SolanaCluster): Promise; addChain(chain: IChain): Promise; protected get storageConnectionStatusKey(): string | null; protected get storageAddressKey(): string | null; protected checkStoredConnection(): void; } //# sourceMappingURL=SolanaConnector.d.ts.map