@1771technologies/lytenyte-pro
Version:
Blazingly fast headless React data grid with 100s of features.
14 lines (13 loc) • 547 B
TypeScript
import type { WordAtCursor } from "../types";
import type { Token } from "../../../expressions/lexer/types";
type TriggerConfig = {
triggerCharacters: string[];
onTrigger: (tokens: Token[], cursorPosition: number, word: WordAtCursor) => void;
tokenize: (value: string) => Token[];
};
export declare function useCompletionTrigger(config: TriggerConfig): {
handleInputChange: (value: string, cursorPosition: number) => void;
triggerManually: (value: string, cursorPosition: number) => void;
cancel: () => void;
};
export {};