import { EditorState, Plugin, Transaction } from "prosemirror-state"; import { EditorSchema } from "../schema"; /** * A fork of prosemirror-inputrules. */ export declare class TextShortcut { readonly match: RegExp; readonly handler: (state: EditorState, match: string[], start: number, end: number, insertText: string) => Transaction | null | undefined; constructor(match: TextShortcut["match"], handler: TextShortcut["handler"] | string); } export declare class TextShortcutPlugin extends Plugin { private readonly textShortcuts; constructor(textShortcuts: TextShortcut[]); private readonly applyTextShortcuts; } export declare function undoTextShortcut(state: EditorState, dispatch?: (transaction: Transaction) => void): boolean;