import type { Address, Chain, NamehashErrorType, ReadContractErrorType } from 'viem'; import { type GetChainContractAddressErrorType } from 'viem/utils'; import type { RequireClientContracts } from '../../../../clients/chain.js'; export type GetOwnerParameters = { name: string; }; export type GetOwnerReturnType = Address; export type GetOwnerErrorType = GetChainContractAddressErrorType | ReadContractErrorType | NamehashErrorType; /** * Find the owner for a V2 name of any depth. * * Reads `findExactOwner` on the UniversalHelper: the owner of exactly this * name. Its sibling `findNearestOwner` walks up to the closest owned ancestor * instead, which would report every unregistered name as owned. * @param client - {@link Client} * @param parameters - {@link GetOwnerParameters} * @returns The owner address, or the zero address if unowned or not found. {@link GetOwnerReturnType} */ export declare function getOwner(client: RequireClientContracts, { name }: GetOwnerParameters): Promise; //# sourceMappingURL=getOwner.d.ts.map