import type { NodeViewProps } from "@tiptap/react"; /** * Safely gets the position from a NodeViewProps getPos function * @param getPos The getPos function from NodeViewProps * @returns The position as a number, or null if undefined */ export declare const safeGetPos: (getPos: NodeViewProps["getPos"]) => number | null; /** * Safely gets a node at the position returned by getPos * @param props NodeViewProps containing editor and getPos * @returns The node or null if position is invalid */ export declare const safeGetNodeAtPos: (props: NodeViewProps) => import("prosemirror-model").Node | null;