import { MarkType } from '@milkdown/prose/model';
import { EditorState } from '@milkdown/prose/state';
import { EditorView } from '@milkdown/prose/view';
import { MarkCommandContext, SelectionTooltipCommand } from './types';
/**
 * 判断编辑器视图是否可编辑。
 */
export declare const isEditorViewEditable: (view: EditorView) => boolean;
/**
 * 从 schema 中按候选名解析 mark 类型。
 */
export declare const resolveMarkType: (view: EditorView, markNames: string[]) => MarkType | null;
/**
 * 判断选区内是否包含目标 mark。
 */
export declare const isMarkActive: (state: EditorState, markType: MarkType) => boolean;
/**
 * 读取选区内已有链接地址。
 */
export declare const resolveSelectedLinkHref: (state: EditorState, linkType: MarkType) => string;
/**
 * 按命令类型执行菜单动作。
 */
export declare const runSelectionTooltipCommand: (command: SelectionTooltipCommand, context: MarkCommandContext) => void;
//# sourceMappingURL=mark-logic.d.ts.map