/** * Main Avatar component with animation features * * This module provides the primary Avatar component for the avataaars library. * It supports optional animation features including: * - Idle animation: Random expression changes when not hovering * - Hover scale: Visual scaling effect on mouse hover * - Hover animation: Expression sequence animation on hover * * All animation features are independent and can be combined as needed. * * @module Avatar */ import type { AvatarProps } from "./types"; export type { AvatarProps as Props, HoverExpression, OptionKey } from "./types"; export { AvatarStyle } from "./types"; import { TOP_TYPES, ACCESSORIES_TYPES, HAIR_COLORS, HAT_COLORS, FACIAL_HAIR_TYPES, FACIAL_HAIR_COLORS, CLOTHE_TYPES, CLOTHE_COLORS, GRAPHIC_TYPES, EYE_TYPES, EYEBROW_TYPES, MOUTH_TYPES, SKIN_COLORS, type TopType, type AccessoriesType, type HairColor, type HatColor, type FacialHairType, type FacialHairColor, type ClotheType, type ClotheColor, type GraphicType, type EyeType, type EyebrowType, type MouthType, type SkinColor } from "./optionValues"; export { TOP_TYPES, ACCESSORIES_TYPES, HAIR_COLORS, HAT_COLORS, FACIAL_HAIR_TYPES, FACIAL_HAIR_COLORS, CLOTHE_TYPES, CLOTHE_COLORS, GRAPHIC_TYPES, EYE_TYPES, EYEBROW_TYPES, MOUTH_TYPES, SKIN_COLORS, type TopType, type AccessoriesType, type HairColor, type HatColor, type FacialHairType, type FacialHairColor, type ClotheType, type ClotheColor, type GraphicType, type EyeType, type EyebrowType, type MouthType, type SkinColor, }; /** * Main Avatar component with optional animation features. * * This component renders an avatar with support for: * - Customizable appearance through props * - Optional idle animation (random expression changes) * - Optional hover scale effect * - Optional hover animation sequence * * Animation features are independent and can be combined. The component * automatically manages state transitions and cleanup. * * @param props - Avatar configuration and animation settings * @returns React component rendering the avatar * * @example * ```tsx * * ``` */ export default function Avatar(props: AvatarProps): import("react/jsx-runtime").JSX.Element; /** * Piece component for rendering individual avatar pieces. * * This component is used for rendering specific parts of the avatar * (e.g., for avatar builders or piece-by-piece rendering). * * @param props - Avatar configuration props * @returns React component rendering the specified avatar piece * * @example * ```tsx * * ``` */ export declare function Piece(props: AvatarProps): import("react/jsx-runtime").JSX.Element;