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 GetResourceParameters = { /** Label to get the EAC resource ID for */ label: string; /** Optional custom registry address (defaults to chain's ensRegistry) */ registryAddress?: Address; }; export type GetResourceReturnType = bigint; export type GetResourceErrorType = GetChainContractAddressErrorType | ReadContractErrorType; /** * Gets the EAC resource ID for a name in a V2 registry. * @param client - {@link ClientWithEns} * @param parameters - {@link GetResourceParameters} * @returns The resource ID as a bigint. {@link GetResourceReturnType} */ export declare function getResource(client: RequireClientContracts, { label, registryAddress }: GetResourceParameters): Promise; //# sourceMappingURL=getResource.d.ts.map