import { Selection } from "@tiptap/pm/state"; import { Node } from "@tiptap/pm/model"; //#region src/components/typist-editor.helper.d.ts /** * The return type for the node attributes, an object mapping attribute names to values. */ type NodeAttributes = { [key: string]: unknown; }; /** * Given a ProseMirror document and a node type, returns the attributes of the given node type for * all the nodes in the document. This is based on the official implementation for the * `findChildren` helper function. */ declare function getAllNodesAttributesByType(doc: Node, nodeType: string): Array; //#endregion export { getAllNodesAttributesByType }; //# sourceMappingURL=typist-editor.helper.d.ts.map