import React from 'react'; import type { TextInputProps as NativeTextInputProps, TextInput as RNTextInput, StyleProp, ViewStyle, TextStyle } from 'react-native'; import type { State } from './StyledSearch'; import type { IconName } from '../Icon'; type SearchOneLineHandles = Pick; interface SearchOneLineProps extends NativeTextInputProps { /** * 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; /** * Placeholder text to display. * */ placeholder?: string; /** * Whether the input is editable. * */ editable?: boolean; /** * Whether the input is disabled. */ disabled?: 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. * */ renderInputValue?: (inputProps: NativeTextInputProps) => React.ReactNode; /** * Variant of the SearchTwo * @default 'basic' */ variant?: 'basic' | 'reversed'; /** * Clearable input. */ clearable?: boolean; /** * If true, indicates that the SearchOneLine is accessible to screen readers. */ accessible?: boolean; } export declare const getState: ({ disabled, editable, isEmptyValue, }: { disabled?: boolean; editable?: boolean; isFocused?: boolean; isEmptyValue?: boolean; }) => State; declare const SearchOneLine: React.ForwardRefExoticComponent>; export default SearchOneLine;