import React from 'react'; import type { ImageSourcePropType, StyleProp, ViewProps, ViewStyle } from 'react-native'; export interface AvatarProps extends ViewProps { /** * Callback function when pressing component. */ onPress?: () => void; /** * Image source to be displayed on avatar. */ source?: ImageSourcePropType; /** * Renders title in the placeholder. */ title?: string; /** * Visual intent of the Avatar. Defaults to `'neutral'`. */ intent?: 'neutral' | 'primary' | 'info' | 'danger' | 'success' | 'warning'; /** * Size of the avatar. */ size?: 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge'; /** * Additional style. */ style?: StyleProp; /** * Testing id of the component. */ testID?: string; } declare const Avatar: ({ onPress, source, testID, style, title, size, intent, }: AvatarProps) => React.JSX.Element | null; export default Avatar;