import * as React from 'react'; import type { BaseFieldProps, BaseFieldVariantProps, FieldComponentProps } from '../base-field'; type TextFieldType = 'email' | 'search' | 'tel' | 'text' | 'url'; interface TextFieldProps extends Omit, 'type' | 'supportsStartAndEndSlots'>, BaseFieldVariantProps, Pick { type?: TextFieldType; startSlot?: React.ReactElement | string | number; endSlot?: React.ReactElement | string | number; /** * The maximum number of characters that the input field can accept. * When this limit is reached, the input field will not accept any more characters. * The counter element will turn red when the number of characters is within 10 of the maximum limit. */ maxLength?: number; } declare const TextField: React.ForwardRefExoticComponent & React.RefAttributes>; export { TextField }; export type { TextFieldProps, TextFieldType };