import { type Position } from '../../common/Positioning.js'; export type Annotation = { label: string; begin: Position; end?: Position; annotations: Annotation[]; }; export declare class AnnotationCollector { private readonly annotationStack; private readonly annotations; beginAnnotation(label: string, position: Position): void; endAnnotation(position: Position): void; getAnnotations(): Annotation[]; private getParentAnnotation; private getCurrentAnnotationList; private getPreviousAnnotationInSameLevel; }