import { Node as ProseMirrorNode } from "prosemirror-model"; import { Plugin } from "prosemirror-state"; import type { EditorState } from "prosemirror-state"; import type { EditorView, NodeView } from "prosemirror-view"; import type { Editor } from "../types.js"; interface DocumentTemplatePluginOptions { editor: Editor; } interface ProtectedRange { from: number; to: number; } export declare function addDeletedPartWidget(dom: HTMLElement, view: EditorView, getPos: () => number | undefined): void; export declare function getProtectedRanges(state: EditorState): ProtectedRange[]; export declare function getAllowedElementsAndMarks(state: EditorState): { elements: string[] | false; marks: string[] | false; }; export declare function checkProtectedInSelection(state: EditorState): boolean; export declare class PartView implements NodeView { node: ProseMirrorNode; view: EditorView; getPos: () => number | undefined; dom: HTMLElement; contentDOM: HTMLElement; constructor(node: ProseMirrorNode, view: EditorView, getPos: () => number | undefined); stopEvent(): boolean; } export declare const documentTemplatePlugin: (options: DocumentTemplatePluginOptions) => Plugin<{ protectedRanges: ProtectedRange[]; }>; export {}; //# sourceMappingURL=document_template.d.ts.map