import { EditorView } from '@milkdown/kit/prose/view'; import { Node as ProseMirrorNode } from '@milkdown/kit/prose/model'; export interface NodeAtCursor { pos: number; node: ProseMirrorNode; depth: number; } /** * Find an ancestor node of a specific type at the current cursor position. * Walks up the document tree from cursor depth to find the first matching node. */ export declare function getNodeAtCursor(view: EditorView, nodeName: string): NodeAtCursor | null;