import { Annotation, Code, Unit, SetState, AnnotationID, Token, AnnotationLibrary, VariableMap } from "../../../types"; export default class AnnotationManager { setAnnotationLib: SetState; constructor(setAnnotationLib: SetState); addAnnotation(annotation: Annotation): void; rmAnnotation(id: AnnotationID, keep_empty?: boolean): void; createSpanAnnotation(code: Code, from: number, to: number, tokens: Token[]): void; createRelationAnnotation(code: Code, from: Annotation, to: Annotation): void; rerenderAnnotations(): void; } export declare function createAnnotationLibrary(unit: Unit, annotations: Annotation[], variableMap: VariableMap): AnnotationLibrary; /** * Uses the annotation offset and length to find the token indices for span annotations */ export declare const addTokenIndices: (annotations: Annotation[], tokens: Token[]) => Annotation[];