import { default as Web3 } from 'web3'; import { useEstimateGasPrice } from '../hooks/useEstimateGasPrice'; export declare const approve: ({ account, web3, chainId, fromToken, gas, onTxHash, fromAmount, approveExactAmount }: { account: string; web3: Web3; chainId: number; fromToken: string; gas: ReturnType; onTxHash: (txHash: string) => void; fromAmount: string; approveExactAmount?: boolean; }) => Promise;