import { Ref } from 'react'; import { FlatListProps, ViewStyle, TextInput } from 'react-native'; import type { ItemType, ListItemStyleType, Mode } from './types'; declare type Props = { mode?: Mode; /** * Initial Date to scroll to */ initialValue?: Date; /** * Display TimePicker in 24 hour. */ is24Hour?: boolean; /** * Callback to be called every time user change date */ onChange: ($date: Date) => void; /** * Height of single item in list */ itemHeight?: number; /** * Outermost View style */ containerStyle?: ViewStyle; /** * Style for individual list item text */ listItemStyle?: ListItemStyleType; /** * Color style for divider */ separatorColor?: string; /** * Flat list props */ flatListProps?: Partial>; /** * Maximum Date */ maximumDate?: Date; /** * Minimum Date */ minimumDate?: Date; /** * Interval for minute list * * for example if minute interval is 5, you will see * 0, 5, 10, 15, 20 and so on */ minuteInterval?: number; enableTyping?: boolean; setError: (err: string) => void; dateRef?: Ref; }; declare const DateTimePicker: ({ mode, initialValue, is24Hour, onChange, itemHeight, containerStyle, listItemStyle, separatorColor, flatListProps, maximumDate, minimumDate, minuteInterval, enableTyping, dateRef, setError, }: Props) => JSX.Element; export default DateTimePicker;