wagmi
Version:
React Hooks for Ethereum
10 lines • 1.23 kB
TypeScript
import type { Config, EstimateFeesPerGasErrorType, ResolvedRegister } from '@wagmi/core';
import type { Compute, ConfigParameter } from '@wagmi/core/internal';
import { type EstimateFeesPerGasData, type EstimateFeesPerGasOptions } from '@wagmi/core/query';
import type { FeeValuesType } from 'viem';
import { type UseQueryReturnType } from '../utils/query.js';
export type UseEstimateFeesPerGasParameters<type extends FeeValuesType = FeeValuesType, config extends Config = Config, selectData = EstimateFeesPerGasData<type>> = Compute<EstimateFeesPerGasOptions<type, config, selectData> & ConfigParameter<config>>;
export type UseEstimateFeesPerGasReturnType<type extends FeeValuesType = FeeValuesType, selectData = EstimateFeesPerGasData<type>> = UseQueryReturnType<selectData, EstimateFeesPerGasErrorType>;
/** https://wagmi.sh/react/api/hooks/useEstimateFeesPerGas */
export declare function useEstimateFeesPerGas<config extends Config = ResolvedRegister['config'], type extends FeeValuesType = 'eip1559', selectData = EstimateFeesPerGasData<type>>(parameters?: UseEstimateFeesPerGasParameters<type, config, selectData>): UseEstimateFeesPerGasReturnType<type, selectData>;
//# sourceMappingURL=useEstimateFeesPerGas.d.ts.map