import React from 'react'; import { BoxProps } from '../Box'; import { PrependParameters } from '../types/utils'; import type { PropsWithoutChange, FormControlBaseProps, Size } from '../types'; export interface InputBaseLocaleType { unfilled: string; } export interface InputBaseCommonProps extends Omit, PropsWithoutChange { /** A component can have different sizes */ size?: Size; /** The HTML input id */ id?: string; /** Ref of input element */ inputRef?: React.Ref; /** Is plaintext display mode */ plaintext?: boolean; /** Input placeholder text */ placeholder?: string; } export interface InputBaseProps extends InputBaseCommonProps { /** Component element type */ as?: React.ElementType; /** Class prefix for component */ classPrefix?: string; /** HTML input props */ inputProps?: React.InputHTMLAttributes; /** Event handler for focus event */ onFocus?: React.FocusEventHandler; /** Event handler for blur event */ onBlur?: React.FocusEventHandler; /** Event handler for keydown event */ onKeyDown?: React.KeyboardEventHandler; /** Input specific props like handling enter key for Input */ onPressEnter?: React.KeyboardEventHandler; /** The callback function in which value is changed. */ onChange?: PrependParameters, [ value: string ]>; } /** * The `InputBase` component serves as the base for both Input and Textarea components. * It provides common functionality for both components. */ declare const InputBase: import("../types").InternalRefForwardingComponent<"input" | "textarea", InputBaseProps, never> & Record; export default InputBase;