import { type MouseEvent, type MutableRefObject } from "react"; export interface useCursorOnFocusProps { /** * Determines the position of the text cursor on focus of the input. * * start = place cursor at the beginning * end = place cursor at the end * \# = index to place the cursor */ cursorPositionOnFocus?: "start" | "end" | number; /** * Determines what gets highlighted on focus of the input. * * If `true` all text will be highlighted. * If an array text between those indices will be highlighted * e.g. [0,1] will highlight the first character. */ highlightOnFocus?: boolean | number[]; } export declare function useCursorOnFocus(inputRef: MutableRefObject, { cursorPositionOnFocus, highlightOnFocus }: useCursorOnFocusProps): { handleMouseDown: () => void; handleMouseMove: (event: MouseEvent) => void; handleMouseUp: () => void; };