UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

9 lines (8 loc) 275 B
import type { EditorState } from '@atlaskit/editor-prosemirror/state'; type NodeCount = Record<string, number>; type NodesCount = { nodeCount: NodeCount; extensionNodeCount: NodeCount; }; export declare function countNodes(state: EditorState): NodesCount; export {};