import { type RefObject } from 'react'; import type { SpinButtonTextSelection } from '../types.js'; /** * This hook provides text selection and cursor utility functions. * Because the SpinButton is a contenteditable span, this is not provided natively. */ export declare const useSelection: (ref: RefObject | undefined) => { selectAll: () => void; deselectAll: () => void; getSelection: () => SpinButtonTextSelection | undefined; setSelection: (selection: Partial) => void; };