import { Token, TokenSelection, AnnotationLibrary } from "../../../types"; /** * This is a hugely elaborate component for managing navigation (key, mouse and touch events) * It doesn't acctually render anything, but its shaped as a component because useEffect is just really convenient here * You probably never want to read this. And if you do, don't expect my sympathies. Rather, just blame me * if anything in here breaks, or ask nicely if we need more features */ export default function useAnnotationEvents(tokens: Token[], annotationLib: AnnotationLibrary, triggerSelectionPopup: any, editMode: boolean, sameFieldOnly: boolean, eventsBlocked: boolean): TokenSelection;