import { GetEnsNameReturnType, ResolveEnsNameArgs } from '@edgeandnode/ens'; import { GetEnsNameErrorType } from '@wagmi/core'; import { Address } from 'viem'; import { Config, ResolvedRegister } from 'wagmi'; import { UseQueryReturnType } from 'wagmi/query'; export type UseGraphAuthKitEnsNameArgs = Omit & { address?: Address | null; }; export type UseGraphAuthKitEnsNameResult = UseQueryReturnType; /** * React hook for looking up a users primary/set ENS name in The Graph Ecosystem. * * Resolves the ENS name either for the passed in address, or the authenticated user address, * if no address passed in. * * If neither address are provided, returns null. * * @example Return the ENS name for the given address * ```tsx * import { useGraphAuthKitEnsName } from '@edgeandnode/graph-auth-kit/ens' * * export function RenderEnsName() { * const { data: ens } = useGraphAuthKitEnsName({ address: '0x123' }) * * return
{ens || 'no ENS name set'}
* } * ``` * * @example Return the ENS name for the connected wallet * ```tsx * import { useGraphAuthKitEnsName } from '@edgeandnode/graph-auth-kit/ens' * * export function RenderEnsName() { * const { data: ens } = useGraphAuthKitEnsName() * * return
{ens || 'no ENS name set'}
* } * ``` * * @example Return the ENS name for the connected wallet, passing in the Gateway API Key * ```tsx * import { useGraphAuthKitEnsName } from '@edgeandnode/graph-auth-kit/ens' * * export function RenderEnsName() { * const { data: ens } = useGraphAuthKitEnsName({ gatewayApiKey: 'abc123' }) * * return
{ens || 'no ENS name set'}
* } * ``` */ export declare function useGraphAuthKitEnsName(args?: Readonly): UseGraphAuthKitEnsNameResult; //# sourceMappingURL=useGraphAuthKitEnsName.d.ts.map