/// import { ComponentClass, ReactNode } from 'react'; import { PassTroughFunction } from '../../utils/getPassThrough'; export interface WrapperNodeProps { className?: string; cover?: boolean; image?: string; } export interface ImgNodeProps { alt?: string; cover?: boolean; onError(): void; src: string; } export interface AvatarFactoryArgs { ImgNode: ComponentClass; WrapperNode: ComponentClass; passthrough: PassTroughFunction; } export interface AvatarProps { alt?: string; children?: ReactNode; className?: string; cover?: boolean; image?: string; title?: string; } export interface AvatarState { errored: boolean; } export default function avatarFactory({ImgNode, WrapperNode, passthrough}: AvatarFactoryArgs): ComponentClass;