import { GetAvatarReturnType, ResolveAvatarArgs } from '@edgeandnode/ens'; import { GetEnsAvatarErrorType } from '@wagmi/core'; import { Address } from 'viem'; import { Config, ResolvedRegister } from 'wagmi'; import { UseQueryReturnType } from 'wagmi/query'; export type UseGraphAuthKitAvatarArgs = Omit & { address?: Address | null; }; export type UseGraphAuthKitAvatarResult = UseQueryReturnType, GetEnsAvatarErrorType>; /** * React hook for looking up a users primary/set avatar in The Graph Ecosystem. * * Resolves the avatar either for the passed in address, or the authenticated user address, * if no address passed in. * * If neither address are provided, returns the result of `createIdenticon()` from `@edgeandnode/gds`. * * @example Return the avatar for the given address * ```tsx * import { ExperimentalAvatar as Avatar } from '@edgeandnode/gds' * import { useGraphAuthKitAvatar } from '@edgeandnode/graph-auth-kit/ens' * * export function RenderAvatar() { * const { data: avatar } = useGraphAuthKitAvatar({ address: '0x123' }) * * return * } * ``` * * @example Return the avatar for the connected wallet * ```tsx * import { ExperimentalAvatar as Avatar } from '@edgeandnode/gds' * import { useGraphAuthKitAvatar } from '@edgeandnode/graph-auth-kit/ens' * * export function RenderAvatar() { * const { data: avatar } = useGraphAuthKitAvatar() * * return * } * ``` * * @example Return the avatar for the connected wallet, passing in the Gateway API Key * ```tsx * import { ExperimentalAvatar as Avatar } from '@edgeandnode/gds' * import { useGraphAuthKitAvatar } from '@edgeandnode/graph-auth-kit/ens' * * export function RenderAvatar() { * const { data: avatar } = useGraphAuthKitAvatar({ address: '0x123', gatewayApiKey: 'abc123' }) * * return * } * ``` */ export declare function useGraphAuthKitAvatar(args?: Readonly): UseGraphAuthKitAvatarResult; //# sourceMappingURL=useGraphAuthKitAvatar.d.ts.map