import { type Address, type Chain, type GetChainContractAddressErrorType, type Hex, type ReadContractErrorType, type ToHexErrorType } from 'viem'; import { type PacketToBytesErrorType } from 'viem/ens'; import { type RequireClientContracts } from '../../../clients/chain.js'; import { type GetNameWithSizedLabelsErrorType } from '../../../utils/name/getNameWithSizedLabels.js'; export type ResolveNameDataParameters = { name: string; data: data; strict?: boolean; gatewayUrls?: string[]; /** Block number to read at. CCIP-read (offchain) responses are not pinned to this block. */ blockNumber?: bigint; }; type Result = { success: boolean; returnData: Hex; }; type ResultArray = readonly Result[]; export type ResolveNameDataReturnType = { resolvedData: data extends Hex[] ? ResultArray : Hex; resolverAddress: Address; } | null; export type ResolveNameDataErrorType = GetNameWithSizedLabelsErrorType | ReadContractErrorType | GetChainContractAddressErrorType | ToHexErrorType | PacketToBytesErrorType; /** * Resolves name and data with the universal resolver. * @param client - {@link Client} * @param parameters - {@link ResolveParameters} * @returns {@link ResolveReturnType} * @internal */ export declare function resolveNameData(client: RequireClientContracts, { name, data, strict, gatewayUrls, blockNumber, }: ResolveNameDataParameters): Promise>; export {}; //# sourceMappingURL=resolveNameData.d.ts.map