import type { MutableRefObject, RefObject } from 'react'; import React from 'react'; import type { StyleProp, TextInputProps, TextStyle, ViewStyle } from 'react-native'; import { TextInput } from 'react-native'; export type EditTextStyles = { container?: StyleProp; labelContainer?: StyleProp; label?: StyleProp; inputContainer?: StyleProp; input?: StyleProp; error?: StyleProp; counter?: StyleProp; }; export type EditTextStatus = 'disabled' | 'error' | 'focused' | 'hovered' | 'basic'; type RenderType = (stats: EditTextStatus) => JSX.Element; type CustomRenderType = (({ color, status }: { color: string; status: EditTextStatus; }) => JSX.Element) | null; export type EditTextProps = { testID?: TextInputProps['testID']; inputRef?: MutableRefObject | RefObject; style?: StyleProp; styles?: EditTextStyles; startElement?: JSX.Element | CustomRenderType; endElement?: JSX.Element | CustomRenderType; required?: boolean; label?: string | RenderType; error?: string | RenderType; direction?: 'row' | 'column'; decoration?: 'underline' | 'boxed'; value?: TextInputProps['value']; multiline?: TextInputProps['multiline']; onChange?: TextInputProps['onChange']; onChangeText?: TextInputProps['onChangeText']; placeholder?: TextInputProps['placeholder']; placeholderColor?: TextInputProps['placeholderTextColor']; onFocus?: TextInputProps['onFocus'] | undefined; onBlur?: TextInputProps['onBlur'] | undefined; editable?: TextInputProps['editable']; autoComplete?: TextInputProps['autoComplete']; autoCapitalize?: TextInputProps['autoCapitalize']; secureTextEntry?: TextInputProps['secureTextEntry']; onSubmitEditing?: TextInputProps['onSubmitEditing']; numberOfLines?: TextInputProps['numberOfLines']; maxLength?: TextInputProps['maxLength']; hideCounter?: boolean; textInputProps?: Omit; colors?: { basic?: string; disabled?: string; error?: string; focused?: string; hovered?: string; placeholder?: string; }; }; export declare const EditText: React.ForwardRefExoticComponent>; export {};