import { LinkOptions } from '@tiptap/extension-link'; export interface CustomLinkOptions extends LinkOptions { /** * Called when the user pastes a heading link URL whose target * heading does not exist in the current document — i.e. the link * belongs to a different dDoc. */ onForeignHeadingLink?: (message: string) => void; } /** * Extends tiptap's Link with a paste-time hook that detects * heading links pointing at headings from other dDocs and dispatches * a warning. A dedicated ProseMirror `handlePaste` is used (instead * of piggybacking on `shouldAutoLink`) because `shouldAutoLink` is * also called by the autolink plugin on every transaction — which * would re-fire the warning on unrelated keystrokes like Enter. */ export declare const CustomLink: import('@tiptap/core').Mark;