wagmi
Version:
React Hooks for Ethereum
9 lines • 1.06 kB
TypeScript
import type { Config, EstimateGasErrorType, ResolvedRegister } from '@wagmi/core';
import type { ConfigParameter } from '@wagmi/core/internal';
import { type EstimateGasData, type EstimateGasOptions } from '@wagmi/core/query';
import { type UseQueryReturnType } from '../utils/query.js';
export type UseEstimateGasParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = EstimateGasData> = EstimateGasOptions<config, chainId, selectData> & ConfigParameter<config>;
export type UseEstimateGasReturnType<selectData = EstimateGasData> = UseQueryReturnType<selectData, EstimateGasErrorType>;
/** https://wagmi.sh/react/api/hooks/useEstimateGas */
export declare function useEstimateGas<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = EstimateGasData>(parameters?: UseEstimateGasParameters<config, chainId, selectData>): UseEstimateGasReturnType<selectData>;
//# sourceMappingURL=useEstimateGas.d.ts.map