import { FocusEvent } from "react"; interface FocusEvents { /** Handler that is called when the element receives focus. */ onFocus?: (e: FocusEvent) => void; /** Handler that is called when the element loses focus. */ onBlur?: (e: FocusEvent) => void; /** Handler that is called when the element's focus status changes. */ onFocusChange?: (isFocused: boolean) => void; } interface DOMAttributes { onFocus?: (e: FocusEvent) => void; onBlur?: (e: FocusEvent) => void; } type FocusProps = FocusEvents; interface FocusResult { /** Props to spread onto the target element. */ focusProps: DOMAttributes; } /** * useFocus * @description Handles focus events for the immediate target element. * @see {@link https://rooks.vercel.app/docs/hooks/useFocus} */ declare const useFocus: (props: FocusProps) => FocusResult; export { useFocus };