import type { Chain } from 'viem'; import { type CheckedChainWithEns } from './consts.js'; type AddEnsContractsOptions = { /** Overrides the default ENS subgraph URL for the chain */ subgraphUrl?: string; }; /** * Adds ENS contract addresses to the viem chain * @param chain - The viem {@link Chain} object to add the ENS contracts to * @param options.subgraphUrl - Overrides the default ENS subgraph URL * * @example * import { createPublicClient, http } from 'viem' * import { electroneum } from 'viem/chains' * import { addEnsContracts } from '@etn-sc/ensjs' * * const clientWithEns = createPublicClient({ * chain: addEnsContracts(electroneum), * transport: http(), * }) */ export declare const addEnsContracts: (chain: TChain, options?: AddEnsContractsOptions) => CheckedChainWithEns; export {};