import { StyleProp, ViewStyle } from 'react-native'; type IoniconsName = string; type FontAwesomeName = string; type MaterialIconsName = string; type EntypoName = string; type AntDesignName = string; type IconFamilyMap = { Ionicons: IoniconsName; FontAwesome: FontAwesomeName; MaterialIcons: MaterialIconsName; Entypo: EntypoName; AntDesign: AntDesignName; }; type IconFamily = keyof IconFamilyMap; export interface DbIconProps { name: IconFamilyMap[F]; family?: F; size?: number; color?: string; style?: StyleProp; onPress?: () => void; } declare const DbIcon: ({ name, family, size, color, style, onPress, }: DbIconProps) => JSX.Element; export default DbIcon;