import type { EditorState, Command } from 'prosemirror-state'; import type { Dispatch } from './SCWysiwygTypes'; export interface LinkAttrs { href: string; title?: string; target?: string; } declare class SCWysiwygLink { update(attrs: LinkAttrs): Command; insert(text: string, attrs: LinkAttrs): Command; isActive(state: EditorState, options?: { strict: boolean; }): boolean; remove(state: EditorState, dispatch?: Dispatch): boolean; canExecute(state: EditorState): boolean; } export default SCWysiwygLink;