import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model'; import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state'; /** * Counts rather than a set, because one id can appear on several nodes. Counts every annotation * mark, including on `mediaInline` and without the validation `getAllAnnotations` applies. */ export type AnnotationIdCounts = Map; type CountableTransaction = Pick; export declare const createAnnotationIdCounts: (doc: PMNode) => AnnotationIdCounts; export declare const updateAnnotationIdCounts: (previous: AnnotationIdCounts, tr: CountableTransaction) => AnnotationIdCounts; export declare const getAnnotationIdsFromCounts: (counts: AnnotationIdCounts) => Set; export {};