import { Any } from "@keplr-wallet/proto-types/google/protobuf/any"; import { ChainInfo, Msg, AminoSignResponse, StdSignDoc, Coin, StdFee, FeeCurrency } from "@keplr-wallet/types"; import { SignDoc } from "@keplr-wallet/proto-types/cosmos/tx/v1beta1/tx"; import { Dec } from "@keplr-wallet/unit"; import { BackgroundTxFeeType } from "../types"; /** * Build a signed transaction from an AminoSignResponse */ export declare function buildSignedTxFromAminoSignResponse(params: { protoMsgs: Any[]; signResponse: AminoSignResponse; chainInfo: ChainInfo; eip712Signing: boolean; }): { tx: Uint8Array; signDoc: StdSignDoc; }; /** * Prepare sign document for Cosmos transaction signing */ export declare function prepareSignDocForAminoSigning(params: { chainInfo: ChainInfo; accountNumber: string; sequence: string; aminoMsgs: Msg[]; fee: StdFee; memo: string; eip712Signing: boolean; signer: string; }): StdSignDoc; export declare function prepareSignDocForDirectSigning(params: { chainInfo: ChainInfo; accountNumber: string; sequence: string; protoMsgs: Any[]; fee: StdFee; memo: string; pubKey: Uint8Array; }): { signDoc: SignDoc; bodyBytes: Uint8Array; authInfoBytes: Uint8Array; }; /** * Resolve the correct pub key typeUrl for a chain, accounting for ethermint/initia/injective variants. */ export declare function getCosmosPubKeyTypeUrl(chainInfo: ChainInfo): string; export declare function simulateCosmosTx(signer: string, chainInfo: ChainInfo, msgs: Any[], fee: Omit, memo?: string): Promise<{ gasUsed: number; }>; export declare function fetchCosmosSpendableBalances(baseURL: string, bech32Address: string, limit?: number): Promise<{ balances: Coin[]; }>; export declare function getCosmosGasPrice(chainInfo: ChainInfo, feeType?: BackgroundTxFeeType, feeCurrency?: FeeCurrency): Promise<{ gasPrice: Dec; source: "osmosis-base-fee" | "osmosis-txfees" | "feemarket" | "initia-dynamic" | "eip1559" | "default"; }>; export declare function getDefaultGasPrice(feeCurrency: FeeCurrency, feeType: BackgroundTxFeeType): Dec; export declare function calculateCosmosStdFee(feeCurrency: FeeCurrency, gasUsed: number, gasPrice: Dec, features: string[] | undefined): StdFee;