import type { Config, ReadContractErrorType, ReadContractParameters, ResolvedRegister } from '@wagmi/core'; import type { ConfigParameter, QueryParameter, ScopeKeyParameter, UnionCompute } from '@wagmi/core/internal'; import type { ReadContractData, ReadContractQueryFnData, ReadContractQueryKey } from '@wagmi/core/query'; import type { Abi, Address, ContractFunctionArgs, ContractFunctionName } from 'viem'; import { type UseReadContractReturnType } from '../useReadContract.js'; type stateMutability = 'pure' | 'view'; export type CreateUseReadContractParameters | undefined = undefined, functionName extends ContractFunctionName | undefined = undefined> = { abi: abi | Abi | readonly unknown[]; address?: address | Address | Record | undefined; functionName?: functionName | ContractFunctionName | undefined; }; /** Call-level options from ReadContractParameters (excludes abi, address, functionName, args). */ type ReadContractCallOptions = Omit, 'abi' | 'address' | 'functionName' | 'args'>; export type CreateUseReadContractReturnType | undefined, functionName extends ContractFunctionName | undefined> = ? functionName : ContractFunctionName, const args extends ContractFunctionArgs, config extends Config = ResolvedRegister['config'], selectData = ReadContractData>(parameters?: UnionCompute<{ abi?: undefined; address?: address extends undefined ? Address : undefined; functionName?: functionName extends undefined ? name : undefined; args?: args | undefined; } & Partial> & ScopeKeyParameter & ConfigParameter & QueryParameter, ReadContractErrorType, selectData, ReadContractQueryKey>> & (address extends Record ? { chainId?: keyof address | undefined; } : unknown)) => UseReadContractReturnType; export declare function createUseReadContract | undefined = undefined, functionName extends ContractFunctionName | undefined = undefined>(props: CreateUseReadContractParameters): CreateUseReadContractReturnType; export {}; //# sourceMappingURL=createUseReadContract.d.ts.map