import { Chain, Deploy } from '@fadroma/agent'; import type { Address, Message, CodeId, CodeHash, Token } from '@fadroma/agent'; import type { CWMnemonicIdentity, CWSignerIdentity } from './cw-identity'; import { CosmWasmClient, SigningCosmWasmClient } from '@hackbg/cosmjs-esm'; import { Validator } from './cw-staking'; export declare class CWBlock extends Chain.Block { rawTxs: Uint8Array[]; constructor({ hash, height, rawTxs }?: Partial); } /** Generic agent for CosmWasm-enabled chains. */ export declare class CWConnection extends Chain.Connection { /** The bech32 prefix for the account's address */ bech32Prefix?: string; /** The coin type in the HD derivation path */ coinType?: number; /** The account index in the HD derivation path */ hdAccountIndex?: number; /** API connects asynchronously, so API handle is a promise of either variant. */ api: Promise; /** A supported method of authentication. */ identity: CWMnemonicIdentity | CWSignerIdentity; constructor(properties: Partial); /** Handle to the API's internal query client. */ get queryClient(): Promise>; /** Handle to the API's internal Tendermint transaction client. */ get tendermintClient(): Promise>; abciQuery(path: any, params?: Uint8Array): Promise; doGetBlockInfo(height?: number): Promise; doGetHeight(): Promise; /** Query native token balance. */ doGetBalance(token?: string, address?: Address | undefined): Promise; doGetCodes(): Promise>; doGetCodeId(address: Address): Promise; doGetContractsByCodeId(id: CodeId): Promise>; doGetCodeHashOfAddress(address: Address): Promise; doGetCodeHashOfCodeId(codeId: CodeId): Promise; getLabel(address: Address): Promise; doSend(recipient: Address, amounts: Token.ICoin[], options?: Parameters[2]): Promise; doSendMany(outputs: [Address, Token.ICoin[]][], options?: Parameters[1]): Promise; doUpload(data: Uint8Array): Promise>; doInstantiate(codeId: CodeId, options: Parameters[1]): Promise>; doExecute(contract: { address: Address; }, message: Message, options?: Omit[2]>, 'execFee'> & { execFee?: Token.IFee | number | 'auto'; }): Promise; doQuery(contract: Address | { address: Address; }, message: Message): Promise; batch(): Chain.Batch; getValidators({ details }?: { details?: boolean; }): Promise; getValidator(address: Address): Promise; } //# sourceMappingURL=cw-connection.d.ts.map