import { PureComponent } from 'react'; import { ViewStyle } from 'react-native'; declare class ImageStyle { width: number; height: number; marginRight: number; constructor(width: number, height: number, marginRight: number); } declare class TextStyle { fontSize: number; color: string; constructor(fontSize: number, color: string); } interface RatingBarProps { backImage: Object; starImage: Object; imageStyle: ImageStyle; starNumber: number; rating: number; enableClick: boolean; onStarChanged?: Function; touchHighlightBackground: string; style?: ViewStyle; preText: string; preTextStyle: ViewStyle | TextStyle; isShowNumber: boolean; numberStyle: ViewStyle | TextStyle; } interface RatingBarState { rating: number; } interface DefaultProps { backImage: Object; starImage: Object; imageStyle: ImageStyle; starNumber: number; enableClick: boolean; touchHighlightBackground: string; preText: string; preTextStyle: ViewStyle | TextStyle; isShowNumber: boolean; numberStyle: ViewStyle | TextStyle; } export default class RatingBar extends PureComponent { static defaultProps: DefaultProps; constructor(props: RatingBarProps); onPress: (index: number, event: any) => void; render(): JSX.Element; } export {};