/** * SD-3400: detects the staged-delete selection produced by * `selectFootnoteMarkerBefore`/`selectFootnoteMarkerAfter` — a TextSelection * spanning exactly one footnote/endnote reference atom. * * @param {import('prosemirror-state').EditorState} state * @returns {{ pos: number, noteId: string, type: 'footnote' | 'endnote' } | null} */ export function getSelectedNoteMarker(state: import('prosemirror-state').EditorState): { pos: number; noteId: string; type: "footnote" | "endnote"; } | null; /** * SD-3400: second stage of the Word-like staged delete, symmetric with the * note-area delete ("remove on both sides"). Where plain `deleteSelection` * would only remove the body marker — leaving an orphaned `w:footnote` * element in the notes part — this routes the removal through the document * API wrapper, which tombstones the note: the `w:footnote` element stays in * the part so undo restores the note text, and export prunes session-managed * ids that have no surviving reference (SD-3400). * * Plain orchestrator (no PM command plumbing) so any caller can use it; the * `deleteSelectedNoteMarker` editor command is a thin shim over this function. * * @param {import('@core/Editor.js').Editor} editor * @returns {boolean} True when a staged-selected marker was removed. */ export function deleteSelectedNoteMarker(editor: import('../../core/Editor.js').Editor): boolean; //# sourceMappingURL=delete-note-marker.d.ts.map