import { publicResolverTextSnippet } from '@ensdomains/ensjs-abi/v1/publicResolver'; import { type DecodeFunctionResultErrorType, type Hex, type NamehashErrorType } from 'viem'; /** @deprecated */ export type GetTextParameters = { /** Name to get text record for */ name: string; /** Text record key to get */ key: string; /** Whether or not to throw decoding errors */ strict?: boolean; }; /** @deprecated */ export type GetTextReturnType = string | null; /** @deprecated */ export type GetTextErrorType = Error; export type GetTextParametersParameters = { /** Name to get text record for */ name: string; /** Text record key to get */ key: string; }; export type GetTextParametersReturnType = { abi: typeof publicResolverTextSnippet; functionName: 'text'; args: readonly [Hex, string]; }; export type GetTextParametersErrorType = NamehashErrorType; export declare function getTextParameters({ name, key }: GetTextParametersParameters): { readonly abi: readonly [{ readonly inputs: readonly [{ readonly name: "node"; readonly type: "bytes32"; }, { readonly name: "key"; readonly type: "string"; }]; readonly name: "text"; readonly outputs: readonly [{ readonly name: ""; readonly type: "string"; }]; readonly stateMutability: "view"; readonly type: "function"; }]; readonly functionName: "text"; readonly args: readonly [`0x${string}`, string]; }; export type DecodeTextResultFromPrimitiveTypesErrorType = never; export declare function decodeTextResultFromPrimitiveTypes({ decodedData, }: { decodedData: string; }): string | null; export type DecodeTextResultParameters = { strict?: boolean; }; export type DecodeTextResultReturnType = string | null; export type DecodeTextResultErrorType = DecodeFunctionResultErrorType | DecodeTextResultFromPrimitiveTypesErrorType; export declare function decodeTextResult(data: Hex, { strict, }: { strict?: boolean; }): DecodeTextResultReturnType; //# sourceMappingURL=getText.d.ts.map