import { PlainExtension, ProsemirrorPlugin } from '@remirror/core'; import { GapCursor } from '@remirror/pm/gapcursor'; /** * Create a gap cursor plugin. * * @remarks * * When enabled, this will capture clicks near and arrow-key-motion past places * that don't have a normally selectable position nearby, and create a gap * cursor selection for them. The cursor is drawn as an element with class * `ProseMirror-gapcursor`. * * Make sure to import the styles as shown below. * * ```ts * import '@remirror/styles/extension-gap-cursor.css'; * ``` */ export declare class GapCursorExtension extends PlainExtension { get name(): "gapCursor"; createExternalPlugins(): ProsemirrorPlugin[]; } /** * Predicate checking whether the selection is a GapCursor * * @param value - the value to check */ export declare const isGapCursorSelection: (value: unknown) => value is GapCursor; declare global { namespace Remirror { interface AllExtensions { gapCursor: GapCursorExtension; } } }