import { EditorState, Plugin, PluginKey } from 'prosemirror-state'; import { EditorView } from 'prosemirror-view'; import { TKeymapHandler } from '../..'; import { SylApi } from '../../api'; import { Types } from '../../libs'; declare type TNativeKeymapHandler = (state: EditorState, dispatch: EditorView['dispatch'], view: EditorView) => boolean; declare type TNativeKeymap = Types.StringMap; declare type TSylKeymap = Types.StringMap; declare const BASIC_KEYMAP_KEY: PluginKey; declare const DEFAULT_KEYMAP_KEY: PluginKey; declare const CUSTOM_KEYMAP_KEY: PluginKey; declare const createBasicKeymapPlugin: (config: { keepMarks: boolean; }) => Plugin; declare const defaultKeymapPlugin: Plugin; declare const composeKeymap: (adapter: SylApi, keyMaps: Types.StringMap>) => TNativeKeymap; declare const createCustomKeymapPlugins: (adapter: SylApi, customKeyMaps?: TSylKeymap[] | undefined) => import("../ctrl-plugin").ICtrlPlugin; export { BASIC_KEYMAP_KEY, composeKeymap, createBasicKeymapPlugin, createCustomKeymapPlugins, CUSTOM_KEYMAP_KEY, DEFAULT_KEYMAP_KEY, defaultKeymapPlugin, TSylKeymap, };