/** * useKeyboardShortcuts - Handles keyboard shortcuts, Enter/Tab in lists, * and select-all within the Slate editor. */ import { Editor } from 'slate'; import { FormatCommand } from '../types'; interface KeyboardShortcutsArgs { editor: Editor; applyFormat: (command: FormatCommand, value?: string) => void; resetToDefault: () => void; openLinkPopover: () => void; stepFontSize: (delta: number) => void; } export declare function useKeyboardShortcuts({ editor, applyFormat, resetToDefault, openLinkPopover, stepFontSize, }: KeyboardShortcutsArgs): { handleKeyDown: (event: React.KeyboardEvent) => void; }; export {}; //# sourceMappingURL=useKeyboardShortcuts.d.ts.map