import type { Editor } from "@tiptap/react";
export type TextAlignValue = "left" | "center" | "right" | "justify";
export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
export declare function toggleBold(editor: Editor): void;
export declare function toggleItalic(editor: Editor): void;
export declare function toggleUnderline(editor: Editor): void;
export declare function toggleStrike(editor: Editor): void;
export declare function toggleCode(editor: Editor): void;
/** 为当前选区设置链接。 */
export declare function setLink(editor: Editor, href: string): void;
/** 取消当前选区链接。 */
export declare function unsetLink(editor: Editor): void;
export declare function toggleCodeBlock(editor: Editor): void;
/** 切换当前块的引用块状态。 */
export declare function toggleBlockquote(editor: Editor): void;
export declare function setCodeBlockLanguage(editor: Editor, language: string): void;
export declare function toggleSuperscript(editor: Editor): void;
export declare function toggleSubscript(editor: Editor): void;
export declare function setTextAlign(editor: Editor, align: TextAlignValue): void;
export declare function setColor(editor: Editor, color: string): void;
export declare function unsetColor(editor: Editor): void;
export declare function setHighlight(editor: Editor, color: string): void;
export declare function unsetHighlight(editor: Editor): void;
export declare function setHeading(editor: Editor, level: HeadingLevel): void;
/** 将当前块设置为普通段落。 */
export declare function setParagraph(editor: Editor): void;
/**
 * 切换标题：若当前已是该级别标题则改为段落，否则设为该级别标题。
 * 用于工具栏「再次点击同一项可取消」的交互。
 */
export declare function toggleHeading(editor: Editor, level: HeadingLevel): void;
export declare function toggleBulletList(editor: Editor): void;
export declare function toggleOrderedList(editor: Editor): void;
export declare function toggleTaskList(editor: Editor): void;
/** 判断当前块是否可以增加缩进。 */
export declare function canIncreaseIndent(editor: Editor): boolean;
/** 判断当前块是否可以减少缩进。 */
export declare function canDecreaseIndent(editor: Editor): boolean;
/** 增加当前块缩进：列表项优先嵌套，否则增加段落/标题缩进。 */
export declare function increaseIndent(editor: Editor): void;
/** 减少当前块缩进：列表项优先提升，否则减少段落/标题缩进。 */
export declare function decreaseIndent(editor: Editor): void;
export interface InsertTableOptions {
    rows?: number;
    cols?: number;
    withHeaderRow?: boolean;
}
/** 不允许在表格内部再插入表格（与 EditorMode 无关）。插入后将光标置于第一个单元格内。 */
export declare function insertTable(editor: Editor, options?: InsertTableOptions): void;
