import { GetEnsNamesBatchReturnType, ResolveEnsNamesBatchArgs } from '@edgeandnode/ens'; import { GetEnsNameErrorType } from '@wagmi/core'; import { Config, ResolvedRegister } from 'wagmi'; import { UseQueryReturnType } from 'wagmi/query'; export type UseGraphAuthKitEnsNamesArgs = ResolveEnsNamesBatchArgs; export type UseGraphAuthKitEnsNamesResult = UseQueryReturnType; /** * React hook for looking up a map of ENS names for the given array of addreses * * @example Return the ENS name map for the given addresses * ```tsx * import { useGraphAuthKitEnsNames } from '@edgeandnode/graph-auth-kit/ens' * * export function RenderEnsNamesMap() { * const { data: map } = useGraphAuthKitEnsNames({ address: ['0x123', '0x456'] }) * * return ( *
* {Object.values(map).map(([address, ens]) => ( *
{address}: {ens || 'not set'}
* ))} *
* ) * } * ``` */ export declare function useGraphAuthKitEnsNames(args: Readonly): UseGraphAuthKitEnsNamesResult; //# sourceMappingURL=useGraphAuthKitEnsNames.d.ts.map