import { EditorState } from "prosemirror-state"; import { Command } from "../types"; export interface FailedCommandResult { success: false; } export interface SuccessCommandResult { success: true; newState: EditorState; } export declare type CommandResult = FailedCommandResult | SuccessCommandResult; export declare function applyCommand(command: Command, initial: EditorState): CommandResult;