import type { Balances, Chain, ChainsConfig, Network, SignedTx, StaticPlatformMethods, TokenId, TxHash } from '@wormhole-foundation/sdk-connect'; import { PlatformContext } from '@wormhole-foundation/sdk-connect'; import { SolanaChain } from './chain.js'; import type { Commitment, ConnectionConfig, RpcResponseAndContext, SendOptions, SignatureResult } from '@solana/web3.js'; import { Connection, PublicKey } from '@solana/web3.js'; import type { AnySolanaAddress, SolanaChains, SolanaPlatformType } from './types.js'; /** * @category Solana */ export declare class SolanaPlatform extends PlatformContext implements StaticPlatformMethods { static _platform: "Solana"; constructor(network: N, config?: ChainsConfig); getRpc(chain: C, config?: ConnectionConfig): Connection; getChain(chain: C, rpc?: Connection): SolanaChain; static nativeTokenId(network: N, chain: C): TokenId; static isNativeTokenId(network: N, chain: C, tokenId: TokenId): boolean; static isSupportedChain(chain: Chain): boolean; static getDecimals(_network: Network, chain: Chain, rpc: Connection, token: AnySolanaAddress): Promise; static getBalance(_network: Network, chain: Chain, rpc: Connection, walletAddress: string, token: AnySolanaAddress): Promise; static getBalances(_network: Network, chain: Chain, rpc: Connection, walletAddress: string): Promise; static sendWait(chain: Chain, rpc: Connection, stxns: SignedTx[], opts?: SendOptions): Promise; static sendTxWithRetry(rpc: Connection, tx: SignedTx, sendOpts?: SendOptions, retryInterval?: number): Promise<{ signature: string; response: RpcResponseAndContext; }>; static latestBlock(rpc: Connection, commitment?: Commitment): Promise<{ blockhash: string; lastValidBlockHeight: number; }>; static getLatestBlock(rpc: Connection): Promise; static getLatestFinalizedBlock(rpc: Connection): Promise; static chainFromChainId(genesisHash: string): [Network, SolanaChains]; static chainFromRpc(rpc: Connection): Promise<[Network, SolanaChains]>; static getTokenProgramId(rpc: Connection, mint: PublicKey): Promise; } //# sourceMappingURL=platform.d.ts.map