import type { ReactElement, HTMLAttributes, Ref } from "react";
import type SlAvatarElement from "@shoelace-style/shoelace/dist/components/avatar/avatar.js";
import { SlErrorEvent } from "../events";
export type { SlAvatarElement };
export type SlAvatarErrorEvent = SlErrorEvent;
export interface SlAvatarProps extends HTMLAttributes {
ref?: Ref;
/**
* The image source to use for the avatar.
*/
image?: string;
/**
* A label to use to describe the avatar to assistive devices.
*/
label?: string;
/**
* Initials to use as a fallback when no image is available (1-2 characters max recommended).
*/
initials?: string;
/**
* Indicates how the browser should load the image.
*/
loading?: "eager" | "lazy";
/**
* The shape of the avatar.
*/
shape?: "circle" | "square" | "rounded";
/**
* The image could not be loaded. This may because of an invalid URL, a temporary network condition, or some unknown cause.
*/
onSlError?: (event: SlAvatarErrorEvent) => void;
/**
* The image could not be loaded. This may because of an invalid URL, a temporary network condition, or some unknown cause.
*/
onSlErrorCapture?: (event: SlAvatarErrorEvent) => void;
}
/**
* Avatars are used to represent a person or object.
*/
export default function SlAvatar(
props: SlAvatarProps,
): ReactElement;