/** * Check if the element is a textual element. * @param el - The element to check. * @returns True if the element is a textual element, false otherwise. */ export declare const isTextualElement: (el: HTMLElement) => boolean; type Editable = HTMLTextAreaElement | HTMLInputElement | HTMLElement; export interface UseFocusOnTypingOptions { /** * Whether the hook is enabled. * @default true */ enabled?: boolean; /** * Whether to allow punctuation, diacritics, etc. * @default false */ strictChars?: boolean; } /** * Focus `editableRef` the moment the user types anywhere on the page, * *unless* their cursor is already inside an editable control. * @param editableRef - The ref to the editable element. * @param options - The options for the hook. * @param options.enabled - Whether the hook is enabled. * @param options.strictChars - Whether to allow punctuation, diacritics, etc. */ export declare function useFocusOnTyping(editableRef: React.RefObject, options?: UseFocusOnTypingOptions): void; export {};