import type { EditorState, Transaction, Command } from 'prosemirror-state'; export declare type Dispatch = (tr: Transaction) => void | null; interface SCWysiwygBaseCommand { canExecute: (state: EditorState) => boolean; } export interface ToggleCommand extends SCWysiwygBaseCommand { toggle: () => Command; isActive: (state: EditorState) => boolean; } export interface InsertCommand extends SCWysiwygBaseCommand { insert: () => Command; } export {};