import { type Chain } from "viem"; /** * useFetchNativeCurrencyPrice Hook * * Fetches the current USD price of the native currency for a given chain using Uniswap V2 on mainnet. * * @param {Chain} [chain=mainnet] - (Optional) The blockchain network to fetch the native currency price for. Defaults to Ethereum mainnet. Since most of the chains has ETH as native currency, it works out of the box but for other chains, we need to set the `nativeCurrencyTokenAddress` in `NETWORKS_EXTRA_DATA[chain.id]`. * * @returns {Object} An object containing: * - price {number}: The current price of the native currency in USD. * - isLoading {boolean}: Loading state for the price fetching process. * - error {unknown}: Error object if fetching fails. * - isError {boolean}: Error state for the price fetching process. * * @example * const { price, isLoading, isError } = useFetchNativeCurrencyPrice(mainnet); */ export declare const useFetchNativeCurrencyPrice: (chain?: Chain) => { price: number; isLoading: boolean; error: Error | null; isError: boolean; }; //# sourceMappingURL=useFetchNativeCurrencyPrice.d.ts.map