import React, { ReactNode } from "react"; import { TextInput, TextInputProps } from "react-native"; export type InputProps = { /** * A callback method invoked when the input component registeres a change of text content. * @param contents A string representing the new text in the input field. */ onChange?: (contents: string) => void; /** * A boolean value indicating whether or not the input component should span across multiple lines of text or wrapped to one line. */ multiline?: boolean; /** * The text to display when the input component is empty. */ placeholder?: string; /** * A component that will be added to the left of the input field. */ leftAdornments?: ReactNode; /** * A component that will be added to the right of the input field. */ rightAdornments?: ReactNode; /** * A variant to use for the validation of the input field. */ variant?: "danger" | "warning" | "success"; /** * Whether or not the text should be editable. */ readOnly?: boolean; } & Omit; export declare const Input: React.ForwardRefExoticComponent<{ /** * A callback method invoked when the input component registeres a change of text content. * @param contents A string representing the new text in the input field. */ onChange?: (contents: string) => void; /** * A boolean value indicating whether or not the input component should span across multiple lines of text or wrapped to one line. */ multiline?: boolean; /** * The text to display when the input component is empty. */ placeholder?: string; /** * A component that will be added to the left of the input field. */ leftAdornments?: ReactNode; /** * A component that will be added to the right of the input field. */ rightAdornments?: ReactNode; /** * A variant to use for the validation of the input field. */ variant?: "danger" | "warning" | "success"; /** * Whether or not the text should be editable. */ readOnly?: boolean; } & Omit & React.RefAttributes>;