/** * Avatar — user/entity image with initials fallback and optional presence dot. * * Renders the image when `src` is set, otherwise initials derived from `name`. * `name` is always the accessible label (image alt / initials aria-label), so an * Avatar is never an unlabelled graphic. */ import type { HTMLAttributes } from 'svelte/elements'; export type AvatarSize = 'sm' | 'md' | 'lg' | 'xl'; export type AvatarStatus = 'online' | 'offline' | 'away' | 'busy'; export interface Props extends Omit, 'class'> { /** Image URL. When absent, initials from `name` are shown. */ src?: string; /** Accessible name; also the image alt and initials fallback source. */ name: string; /** Size variant. */ size?: AvatarSize; /** Optional presence indicator. */ status?: AvatarStatus; /** Extra class on the root. */ class?: string; } declare const Avatar: import("svelte").Component; type Avatar = ReturnType; export default Avatar; //# sourceMappingURL=Avatar.svelte.d.ts.map