import { type Chain, type GetChainContractAddressErrorType, type HexToBytesErrorType, type NamehashErrorType, type ReadContractErrorType, type TrimErrorType } from 'viem'; import type { RequireClientContracts } from '../../../../clients/chain.js'; import { type BytesToPacketErrorType } from '../../../../utils/name/hexEncodedName.js'; export type GetWrapperNameParameters = { /** Name with unknown labels, e.g. "[4ca938ec1b323ca71c4fb47a712abb68cce1cabf39ea4d6789e42fbc1f95459b].eth" */ name: string; }; export type GetWrapperNameReturnType = string | null; export type GetWrapperNameErrorType = ReadContractErrorType | GetChainContractAddressErrorType | NamehashErrorType | TrimErrorType | BytesToPacketErrorType | HexToBytesErrorType; /** * Gets the full name for a name with unknown labels from the NameWrapper. * @param client - {@link Client} * @param parameters - {@link GetWrapperNameParameters} * @returns Full name, or null if name was not found. {@link GetWrapperNameReturnType} * * @example * import { createPublicClient, http } from 'viem' * import { mainnet } from 'viem/chains' * import { addEnsContracts } from '@ensdomains/ensjs' * import { getWrapperName } from '@ensdomains/ensjs/public/v1' * * const client = createPublicClient({ * chain: addEnsContracts(mainnet), * transport: http(), * }) * const result = await getWrapperName(client, { name: '[4ca938ec1b323ca71c4fb47a712abb68cce1cabf39ea4d6789e42fbc1f95459b].eth' }) * // wrapped.eth */ export declare function getWrapperName(client: RequireClientContracts, { name }: GetWrapperNameParameters): Promise; //# sourceMappingURL=getWrapperName.d.ts.map