import { FeeType, IFeeConfig } from "@keplr-wallet/hooks"; import { ChainGetter, CoinPrimitive } from "@keplr-wallet/stores"; import { Currency } from "@keplr-wallet/types"; import { CoinPretty } from "@keplr-wallet/unit"; import { TxFee } from "../account"; /** * Currencies that can be used for fees. */ interface FeeCurrency extends Currency { readonly gasPriceStep: { low: number; average: number; high: number; }; } /** * FakeFeeConfig is used to set the fee with the high gas price step. * Currently, Keplr wallet doesn't support to set the fee manually in the frontend. * Keplr wallet just override the fee always in the wallet side. * So, setting the exact max amount is not possible. * To mitigate this problem, just set the max amount minus high fee setting. */ export declare class FakeFeeConfig implements IFeeConfig { readonly chainGetter: ChainGetter; protected _gas: number; protected _shouldZero: boolean; chainId: string; constructor(chainGetter: ChainGetter, initialChainId: string, gas: number); get gas(): number; setChain(chainId: string): void; get fee(): CoinPretty | undefined; get feeCurrencies(): Currency[]; get feeCurrency(): Currency | undefined; get feeCurrencyWithGas(): FeeCurrency; feeType: FeeType | undefined; get error(): Error | undefined; get shouldZero(): boolean; setShouldZero(value: boolean): void; readonly getFeePrimitive: () => CoinPrimitive | undefined; getFeeTypePretty(): CoinPretty; setFeeType(): void; toStdFee(): TxFee; isManual: boolean; } export {};