import { Extension as TipTapExtension, Editor } from '@tiptap/core'; import { SuggestionProps } from '@tiptap/suggestion'; import { EditorAction, EditorActionGroup } from '../composables'; export type FlatSlashCommandItem = EditorAction & { groupId: string; groupTitle: string; }; export interface SlashCommandsOptions { getGroups: () => EditorActionGroup[]; } export interface SlashCommandMenuHandle { onUpdate: (props: SuggestionProps) => void; onKeyDown: (event: KeyboardEvent) => boolean; } export declare function filterSlashCommandItems(groups: EditorActionGroup[], query: string, editor: Editor): FlatSlashCommandItem[]; export declare const SlashCommands: TipTapExtension;