import { type Address, type Chain } from 'viem'; import { type ReadContractErrorType } from 'viem/actions'; import { type GetChainContractAddressErrorType } from 'viem/utils'; import type { RequireClientContracts } from '../../../../clients/chain.js'; export type GetTokenIdParameters = { /** Label to get the token ID for */ label: string; /** Optional custom registry address (defaults to chain's ensRegistry) */ registryAddress?: Address; }; export type GetTokenIdReturnType = bigint; export type GetTokenIdErrorType = GetChainContractAddressErrorType | ReadContractErrorType; /** * Gets the ERC1155 token ID for a name in a V2 registry. * @param client - {@link ClientWithEns} * @param parameters - {@link GetTokenIdParameters} * @returns The token ID as a bigint. {@link GetTokenIdReturnType} */ export declare function getTokenId(client: RequireClientContracts, { label, registryAddress }: GetTokenIdParameters): Promise; //# sourceMappingURL=getTokenId.d.ts.map