import React from 'react'; import '../../styles/base.module.css'; import { InputWrapperProps } from '../../internal/input-wrapper/InputWrapper'; import { AllElementPropsWithRef, MergeAndOverrideProps } from '../../utils/elementTypings'; export type TextInputProps = MergeAndOverrideProps & InputWrapperProps, { /** * The aria-label for the clear button. * @default 'Clear' */ clearButtonAriaLabel?: string; /** * Use clear button */ clearButton?: boolean; /** * The default input element value. Use when the component is not controlled */ defaultValue?: string; /** * The label for the input */ labelId?: string; /** * Callback fired when the state is changed */ onChange?: React.ChangeEventHandler; /** * Button click callback */ onButtonClick?: React.MouseEventHandler; /** * Short hint displayed in the input before the user enters a value */ placeholder?: string; /** * Type of the input element */ type?: string; /** * The value of the input element, required for a controlled component */ value?: string; /** * The `ref` is forwarded to the native input element. */ ref?: React.Ref; /** * Button icon */ buttonIcon?: React.ReactNode; /** * Button aria-label */ buttonAriaLabel?: string; /** * ID of the element controlled by the button (e.g., dropdown, dialog) */ buttonAriaControlsId?: string; /** * Whether the controlled element is expanded/visible */ buttonAriaExpanded?: boolean; }>; export declare const TextInput: ({ buttonAriaLabel, buttonAriaControlsId, buttonAriaExpanded, buttonIcon, children, className, clearButtonAriaLabel, clearButton, defaultValue, disabled, errorText, helperText, hideLabel, id, infoText, invalid, label, labelId, onButtonClick, onChange, required, style, successText, tooltip, type, ref, ...rest }: TextInputProps) => React.JSX.Element;