import { EditorState } from "prosemirror-state"; import { UxCommand } from "../constants"; import { Command, Dispatch } from "../types"; /** * Defines the behaviour for pressing 'backspace' at the start of a heading. * * It attempts to convert the heading to a paragraph. */ export declare function escapeFromStart(state: EditorState, dispatch?: Dispatch): boolean; export declare const toggleHeading1: Command; export declare const toggleHeading2: Command; export declare const ux: { [UxCommand.DeleteBackward]: typeof escapeFromStart; [UxCommand.ToggleHeading1]: Command; [UxCommand.ToggleHeading2]: Command; };