import { AvatarProps } from '@heroui/react'; import { ComponentProps } from 'react'; import { AuthUserView } from '../../../types/user.js'; type LooseUser = AuthUserView | { id?: string; name?: string | null; email?: string; image?: string | null; imageUrl?: string | null; emailVerified?: boolean; username?: string | null; displayUsername?: string | null; }; export interface UserViewProps { className?: string; isPending?: boolean; size?: AvatarProps["size"]; /** * Stable presentation user. Prefer {@link AuthUserView}. * Raw BAUI/Athena session users are still accepted and mapped internally. */ user?: LooseUser; } /** * Render a compact user item with an avatar, a primary label (display username, name, or email), and an optional secondary email line. * * @param isPending - If true and no `user` prop is provided, renders a loading skeleton instead of user details * @param size - Avatar size variant; defaults to `"sm"` * @param user - Optional user to display; when omitted the current session user is used if available * @returns A React element containing the user's avatar and text labels */ export declare function UserView({ className, isPending, size, user, ...props }: UserViewProps & ComponentProps<"div">): import("react").JSX.Element; export {};