UNPKG

@1771technologies/lytenyte-pro

Version:

Blazingly fast headless React data grid with 100s of features.

11 lines (10 loc) 485 B
import type { CompletionItem, WordAtCursor } from "./types"; interface NavigationDeps { readonly onValueChange: (value: string) => void; readonly onAccepted: (value: string, cursorPosition: number) => void; readonly textareaRef: React.RefObject<HTMLTextAreaElement | null>; } export declare function useKeyboardNavigation({ onValueChange, onAccepted, textareaRef }: NavigationDeps): { acceptCompletion: (item: CompletionItem, word: WordAtCursor) => void; }; export {};