import './Avatar.css'; import React from 'react'; import type { ComponentPropsWithRef, ComponentRef } from 'react'; import type { IndicatorProps } from '../Indicator'; export declare const avatarSizeVariant: readonly ["4xs", "3xs", "2xs", "xs", "s", "m", "l", "xl"]; export declare const avatarHueVariant: number[]; export type AvatarSizeVariant = (typeof avatarSizeVariant)[number]; export type AvatarHueVariant = (typeof avatarHueVariant)[number]; declare const avatarEl = "div"; export type AvatarRef = ComponentRef; export type AvatarProps = { /** Размер */ size?: AvatarSizeVariant; /** Если {true} отобразит индикатор онлайна */ online?: boolean; /** Url изображения */ src?: string; /** Имя пользователя */ name: string; /** Цветовой оттенок аватарки (при использовании без src) */ hue?: AvatarHueVariant; /** Дополнительные СSS-классы */ className?: string; /** Свойства компонента Indicator */ indicatorProps?: IndicatorProps; children?: never; } & ComponentPropsWithRef; export declare const cnAvatar: import("@bem-react/classname").ClassNameFormatter; export declare const Avatar: React.ForwardRefExoticComponent & React.RefAttributes>; export {};