import { MarkType } from '@sse-editor/pm/model'; import { RawCommands } from '../types.js'; declare module '@sse-editor/core' { interface Commands { toggleMark: { /** * Toggle a mark on and off. */ toggleMark: (typeOrName: string | MarkType, attributes?: Record, options?: { /** * Removes the mark even across the current selection. Defaults to `false`. */ extendEmptyMarkRange?: boolean; }) => ReturnType; }; } } export declare const toggleMark: RawCommands['toggleMark'];