import React, { ReactElement } from 'react'; import { TextInput as RNTextInput, TextInputProps as RNTextInputProps } from 'react-native'; import { IconProps } from '../../Icon/Icon'; type NativeInputProps = Pick; export type TextInputProps = NativeInputProps & { /** Whether the input is disabled */ disabled?: boolean; /** Whether the input is in an invalid state */ invalid?: boolean; /** * Icon to display at the start of the input * @example * ```tsx * * ``` */ icon?: IconProps['name']; /** * Button to display at the end of the input * Must be used with FieldButton component * * @example * ```tsx * } /> * ``` */ button?: ReactElement; }; /** * Text input component with DS styles. Intended only for internal use * in combination with FormControl component. * * @example * ```tsx * * console.log(text)} * disabled={false} * invalid={false} * /> * * ``` */ export declare const TextInput: React.ForwardRefExoticComponent * ``` */ icon?: import("../../..").IconName | undefined; /** * Button to display at the end of the input * Must be used with FieldButton component * * @example * ```tsx * } /> * ``` */ button?: React.ReactElement> | undefined; } & React.RefAttributes>; export {}; //# sourceMappingURL=TextInput.d.ts.map