import { type DecodeFunctionResultErrorType, type Hex, type NamehashErrorType } from 'viem'; import type { Prettify } from '../../types/index.js'; import type { DecodeContentHashErrorType, DecodedContentHash } from '../contentHash.js'; export type GetContentHashParameters = { /** Name to get content hash record for */ name: string; /** Whether or not to throw decoding errors */ strict?: boolean; }; export type GetContentHashReturnType = Prettify; export type GetContentHashErrorType = NamehashErrorType; export declare function getContentHashParameters({ name, }: Omit): { readonly abi: readonly [{ readonly inputs: readonly [{ readonly name: "node"; readonly type: "bytes32"; }]; readonly name: "contenthash"; readonly outputs: readonly [{ readonly name: ""; readonly type: "bytes"; }]; readonly stateMutability: "view"; readonly type: "function"; }]; readonly functionName: "contenthash"; readonly args: readonly [`0x${string}`]; }; export type DecodeContentHashResultFromPrimitiveTypesErrorType = DecodeContentHashErrorType; export declare function decodeContentHashResultFromPrimitiveTypes({ decodedData, }: { decodedData: Hex; }): GetContentHashReturnType; export type DecodeContentHashResultErrorType = DecodeFunctionResultErrorType | DecodeContentHashResultFromPrimitiveTypesErrorType; export declare function decodeContentHashResult(data: Hex, { strict }: Pick): GetContentHashReturnType; //# sourceMappingURL=getContentHash.d.ts.map