import type { KeyBindings } from '@remirror/core'; import { ExtensionPriority } from '@remirror/core'; /** * Add custom keyboard bindings to the editor instance. * * @remarks * * ```tsx * import { Remirror, useRemirror, useRemirrorContext, useKeymaps } from '@remirror/react'; * * const Editor = () => { * const { manager } = useRemirror({ extensions: () => [] }); * * return ( * * * * ); * }; * * const EditorBindings = () => { * const { getRootProps } = useRemirrorContext({ autoUpdate: true }); * * useKeymaps({ * Enter: () => { * // Prevent the tne enter key from being pressed. * return true; * } * }); * * return
; * }; * ``` */ export declare function useKeymaps(bindings: KeyBindings, priority?: ExtensionPriority): void;