import type { ReactNode } from 'react'; import { type UILinkComponent } from '../components/Provider.js'; /** A person's card, for `HoverCard`'s `card`. */ export interface UserHoverCardProps { username: string; /** Display name; falls back to the username. */ name?: string | null | undefined; avatarSrc?: string | null | undefined; /** Short badge beside the name, such as the user's role. */ badge?: ReactNode; /** Profile link for the card's header; absent renders the header unlinked. */ href?: string | undefined; /** Overrides the provider's link slot for the header link. */ linkComponent?: UILinkComponent | undefined; /** Shows placeholder detail lines while the profile loads. */ loading?: boolean | undefined; /** Detail lines, usually `HoverCardRow`s, below the header. */ children?: ReactNode; } export declare function UserHoverCard({ username, name, avatarSrc, badge, href, linkComponent, loading, children, }: UserHoverCardProps): import("react").JSX.Element; /** One detail line of a hover card: a leading icon and its content. With * `onClick` the line is a button; with `copy` it is a button that copies a value, * such as the email address it shows, its icon turning into a check for a moment. */ export declare function HoverCardRow({ icon, children, title, align, truncate, onClick, copy, }: { icon: ReactNode; children: ReactNode; title?: string | undefined; /** `start` pins the icon to the first line of wrapping content. */ align?: 'center' | 'start' | undefined; truncate?: boolean | undefined; onClick?: (() => void) | undefined; /** Copies `text` when pressed, named by `label`: "Copy email", then a toast "Copied email". */ copy?: { text: string; label: string; } | undefined; }): import("react").JSX.Element;