import { Editor } from '@tiptap/core'; import { SuggestionKeyDownProps, SuggestionProps } from '@tiptap/suggestion'; import { SuggestionOptions } from '../types'; export declare const useSuggestion: (opts: SuggestionOptions) => { destroy: () => void; suggestion: { char: string; allowedPrefixes: null; items: ({ query }: { query: string; editor: Editor; }) => Promise; render: () => { onStart: (props: SuggestionProps) => void; onUpdate(props: SuggestionProps): void; onKeyDown(suggestionKeyDownProps: SuggestionKeyDownProps): any; onExit(): void; }; }; hiddenPopup: () => void; getVisible: () => boolean; };