import React$1, { ReactNode, Ref, ReactElement, PropsWithChildren } from 'react'; import { TextInputProps as TextInputProps$1, FocusEvent, BlurEvent, StyleProp, ViewStyle, TextStyle, TextInput as TextInput$1, ViewProps } from 'react-native'; import { IconName, SelectOptionType, SingleSelectProps, MultiSelectProps, DatePickerProps, TimePickerProps, Theme as Theme$1, Scale, SystemPalette } from '@hero-design/rn'; export * from '@hero-design/rn'; type TextInputHandles = Pick; type TextInputVariant = 'text' | 'textarea'; type NativeTextInputProps = Omit & { onFocus?: (event?: FocusEvent) => void | undefined; onBlur?: (event?: BlurEvent) => void | undefined; }; interface TextInputRef { focus: () => void; blur: () => void; clear: () => void; isFocused: () => boolean; setNativeProps?: (props: TextInputProps$1) => void; } type TextInputProps = NativeTextInputProps & { /** * Field label. */ label?: string; /** * Name of Icon or ReactElement to render on the left side of the input, before the user's cursor. */ prefix?: IconName | React.ReactElement; /** * Name of Icon or ReactElement to render on the right side of the input. */ suffix?: IconName | React.ReactElement; /** * Additional wrapper style. */ style?: StyleProp; /** * Input text style. */ textStyle?: StyleProp; /** * Testing id of the component. */ testID?: string; /** * Accessibility label for the input (Android). */ accessibilityLabelledBy?: string; /** * Error message to display. */ error?: string; /** * Whether the input is required. When false, "(Optional)" will be appended to the label. */ required?: boolean; /** * Placeholder text to display. * */ placeholder?: string; /** * Whether the input is editable. * */ editable?: boolean; /** * Whether the input is disabled. */ disabled?: boolean; /** * Whether the input is loading. */ loading?: boolean; /** * The max length of the input. * If the max length is set, the input will display the current length and the max length. * */ maxLength?: number; /** * Whether to hide the character count. * */ hideCharacterCount?: boolean; /** * The helper text to display. */ helpText?: string; /** * Customise input value renderer */ renderInputValue?: (inputProps: NativeTextInputProps, ref?: React.ForwardedRef) => React.ReactNode; /** * Component ref. */ ref?: React.Ref; /** * Component variant. */ variant?: TextInputVariant; }; declare const TextInput: React$1.ForwardRefExoticComponent & React$1.RefAttributes>; declare const _default$2: ( = SelectOptionType>(props: SingleSelectProps) => React$1.JSX.Element) & { Multi: = SelectOptionType>(props: MultiSelectProps) => React$1.JSX.Element; }; interface DatePickerDialogProps { /** * The value of the date picker. */ value?: Date; /** * The minimum date of the date picker. */ minDate?: Date; /** * The maximum date of the date picker. */ maxDate?: Date; /** * The function to call when the date is changed. */ onChange: (date: Date) => void; /** * The test ID of the date picker. */ testID?: string; /** * Whether the dialog is open */ open: boolean; /** * The function to call when the dialog is closed. */ onClose: () => void; /** * The variant of the date picker. */ variant?: 'default' | 'month-year'; /** * [iOS only] The label of the DatePicker bottom sheet. */ label: string; /** * [iOS only] The confirm label of the date picker bottom sheet. */ confirmLabel: string; /** * [iOS only] The supported orientations of the date picker. */ supportedOrientations?: ('portrait' | 'landscape')[]; /** * [iOS only] The locale of the date picker. */ locale?: string; } declare const _default$1: ((props: DatePickerProps) => React$1.JSX.Element) & { Dialog: ({ ...props }: DatePickerDialogProps) => React$1.JSX.Element; }; declare const TimePicker: (props: TimePickerProps) => React$1.JSX.Element; interface FormGroupProps extends ViewProps { /** * The children of the FormGroup. In order for the group styling to work, * they must be either HD form components (TextInput, Select, Pickers,...) or enhanced HD input components * that supports the corresponding interface. * * Example: * const EnhancedTextInput = (props: TextInputProps) => { * return ; * }; * * *