UNPKG

@atlaskit/editor-common

Version:

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

21 lines (20 loc) 529 B
import type { JSONDocNode } from '@atlaskit/editor-json-transformer'; export type PageElementCounts = { elements: { [key: string]: number; }; macros: { [key: string]: number; }; textFormats: { [key: string]: number; }; unexpectedElements: { [key: string]: number; }; }; /** * Traverses a JSON document and counts the number of unique elements, text formatting and macros. * **/ export declare const getPageElementCounts: (doc: JSONDocNode) => PageElementCounts;