import { AppIcon, StyledProp, StyleRecord } from '@codeleap/styles' import { BadgeProps } from '../Badge' import { AvatarComposition } from './styles' import { ReactNode } from 'react' import { TouchableProps } from '../Touchable' import { AnyFunction } from '@codeleap/types' import { ImageRequireSource } from 'react-native/types' export type AvatarProps = Omit & { text?: string image?: ImageRequireSource | string icon?: AppIcon badge?: BadgeProps['badge'] name?: string | string[] firstNameOnly?: boolean overlayIcon?: AppIcon onPressOverlayIcon?: AnyFunction debugName?: string style?: StyledProp children?: ReactNode } export type AvatarTextProps = Pick export type AvatarIllustrationProps = Pick export type AvatarBadgeProps = Pick & Omit export type AvatarOverlayIconProps = Pick & Omit export type AvatarCtxValue = Omit & { styles: StyleRecord }