import type { Chain, EncodeFunctionDataErrorType } from 'viem'; import type { RequireClientContracts } from '../../../clients/chain.js'; import type { Prettify } from '../../../types/index.js'; import { type DecodeContentHashResultErrorType, type GetContentHashErrorType, type GetContentHashParameters, type GetContentHashReturnType } from '../../../utils/resolver/getContentHash.js'; import { type ResolveNameDataErrorType } from './resolveNameData.js'; export type GetContentHashRecordParameters = Prettify; export type GetContentHashRecordReturnType = GetContentHashReturnType; export type GetContentHashRecordErrorType = GetContentHashErrorType | ResolveNameDataErrorType | EncodeFunctionDataErrorType | DecodeContentHashResultErrorType; /** * Gets the content hash record for a name * @param client - {@link Client} * @param parameters - {@link GetContentHashRecordParameters} * @returns Content hash object, or `null` if not found. {@link GetContentHashRecordReturnType} * * @example * import { createPublicClient, http } from 'viem' * import { mainnet } from 'viem/chains' * import { addEnsContracts } from '@ensdomains/ensjs' * import { getContentHashRecord } from '@ensdomains/ensjs/public' * * const client = createPublicClient({ * chain: addEnsContracts(mainnet), * transport: http(), * }) * const result = await getContentHashRecord(client, { name: 'ens.eth' }) * // { protocolType: 'ipfs', decoded: 'k51qzi5uqu5djdczd6zw0grmo23j2vkj9uzvujencg15s5rlkq0ss4ivll8wqw' } */ export declare function getContentHashRecord(client: RequireClientContracts, { gatewayUrls, name, strict, blockNumber }: GetContentHashRecordParameters): Promise; //# sourceMappingURL=getContentHashRecord.d.ts.map