import { Plugin } from 'prosemirror-state'; import { Schema } from 'prosemirror-model'; export interface KeymapOptions { /** Invoked on Mod-k so the host can open its link editor UI. */ onLinkShortcut?: () => void; /** Invoked on Mod-f so the host can open its find & replace bar. */ onFindShortcut?: () => void; /** Invoked on Mod-/ so the host can open its shortcut help dialog. */ onShortcutHelp?: () => void; } /** * Editor keymap. Returned as two plugins: feature bindings first, then the * ProseMirror base keymap as fallback. */ export declare function buildKeymapPlugins(schema: Schema, options?: KeymapOptions): Plugin[];