import { CosmWasmClient } from "@cosmjs/cosmwasm-stargate"; import type { BankExtension, IbcExtension } from "@cosmjs/stargate"; import { QueryClient } from "@cosmjs/stargate"; import type { Chain, ChainsConfig, Network, SignedTx, StaticPlatformMethods, TxHash } from "@wormhole-foundation/sdk-connect"; import { PlatformContext } from "@wormhole-foundation/sdk-connect"; import { CosmwasmChain } from "./chain.js"; import type { IbcChannels } from "./constants.js"; import type { CosmwasmChains, CosmwasmPlatformType } from "./types.js"; import type { Balances, TokenId } from "@wormhole-foundation/sdk-connect"; import type { AnyCosmwasmAddress } from "./types.js"; /** * @category Cosmwasm */ export declare class CosmwasmPlatform extends PlatformContext implements StaticPlatformMethods { static _platform: "Cosmwasm"; constructor(network: N, _config?: ChainsConfig); getRpc(chain: C): Promise; getChain(chain: C, rpc?: CosmWasmClient): CosmwasmChain; static getQueryClient: (rpc: CosmWasmClient) => QueryClient & BankExtension & IbcExtension; static getIbcChannels(network: N, chain: C): IbcChannels | null; static nativeTokenId(network: Network, chain: C): TokenId; static isSupportedChain(chain: Chain): boolean; static isNativeTokenId(network: N, chain: C, tokenId: TokenId): boolean; static getDecimals(_network: Network, _chain: C, rpc: CosmWasmClient, token: AnyCosmwasmAddress): Promise; static getBalance(_network: Network, chain: C, rpc: CosmWasmClient, walletAddress: string, token: AnyCosmwasmAddress): Promise; static getBalances(_network: Network, chain: C, rpc: CosmWasmClient, walletAddress: string): Promise; static getNativeDenom(network: N, chain: C): string; static sendWait(chain: Chain, rpc: CosmWasmClient, stxns: SignedTx[]): Promise; static getLatestBlock(rpc: CosmWasmClient): Promise; static getLatestFinalizedBlock(rpc: CosmWasmClient): Promise; static chainFromChainId(chainMoniker: string): [Network, CosmwasmChains]; static chainFromRpc(rpc: CosmWasmClient): Promise<[Network, CosmwasmChains]>; static getCounterpartyChannel(sourceChannel: string, rpc: CosmWasmClient): Promise; } //# sourceMappingURL=platform.d.ts.map