Return type for the useMentionsInput hook.
Optional custom data type for mention metadata
Clear the current query
Current word at cursor position
Handle text changes, returns new state
Current search query (null if not in mention mode)
Current text selection
Update the text selection
Return type for the useMentionsInput hook.