import type React from 'react'; import { COLOR } from '../../../../constant/color'; import type { Size } from '../../../../constant/size'; import type { SlotIconComponent } from '../../../types/side-slot'; interface InputSideButtonSlot { type: 'button'; label: string; isSubmit?: boolean; onClick: () => void; } interface InputSideTextSlot { type: 'text'; text: string; } interface InputSideIconSlot { type: 'icon'; icon: SlotIconComponent; size?: number; color?: keyof typeof COLOR; className?: string; } interface InputSideCustomSlot { type: 'custom'; children: React.ReactNode; placement?: 'inside' | 'outside'; } type InputLeadingSlotType = InputSideTextSlot | InputSideIconSlot | InputSideCustomSlot; type InputTrailingSlotType = InputSideButtonSlot | InputSideTextSlot | InputSideIconSlot | InputSideCustomSlot; interface InputBaseCommonProps extends Omit, 'size'> { required?: boolean; label?: string; hintText?: string; size?: Extract; disabled?: boolean; fullWidth?: boolean; validation?: boolean; destructive?: boolean; leadingElement?: InputLeadingSlotType; trailingElement?: InputTrailingSlotType; showHelpIcon?: boolean; showTextCount?: boolean; maxLength?: number; } interface NoneClearableInputBaseProps extends InputBaseCommonProps { clearText?: never; onClearText?: never; } interface ClearableInputBaseProps extends InputBaseCommonProps { clearText: boolean; onClearText: () => void; } type InputBaseProps = NoneClearableInputBaseProps | ClearableInputBaseProps; declare const InputBase: React.ForwardRefExoticComponent>; export type { InputBaseProps }; export { InputBase };