import type { ChangeEvent, FocusEvent, KeyboardEvent, MouseEvent, PointerEvent } from "react"; import type { InputTextRebuiltProps } from "./InputText.types"; export interface useInputTextActionsProps extends Pick { inputRef?: React.RefObject; } /** * Combines the actions on the InputText such as onChange, onEnter, onFocus, onBlur, and onClear to forward information to the consumers of the InputText. * DO not repeat this pattern. We are doing this as a proof of concept relating to the refactoring of Form inputs to see what can be removed. */ export declare function useInputTextActions({ onChange, inputRef, onEnter, onFocus, onBlur, onKeyDown, onKeyUp, onMouseDown, onMouseUp, onPointerDown, onPointerUp, onClick, }: useInputTextActionsProps): { handleClear: () => void; handleChange: (event: ChangeEvent) => void; handleKeyDown: (event: KeyboardEvent) => void; handleKeyUp: (event: KeyboardEvent) => void; handleFocus: (event: FocusEvent) => void; handleBlur: (event: FocusEvent) => void; handleMouseDown: (event: MouseEvent) => void; handleMouseUp: (event: MouseEvent) => void; handlePointerDown: (event: PointerEvent) => void; handlePointerUp: (event: PointerEvent) => void; handleClick: (event: MouseEvent) => void; };