import { Doc, Annotation, Unit, AnnotationLibrary, VariableMap } from "../../../types"; import AnnotationManager from "../functions/AnnotationManager"; /** * This dude prepares a bunch of states for the Unit, including the current annotations. * It also uses the returnTokens and onChangeAnnotation callback functions to give the * parent of Document access to the tokens and (new) annotations. * @param unit * @param onChangeAnnotations * @returns */ declare const useUnit: (unit: Unit, annotations: Annotation[], fullVariableMap: VariableMap, onChangeAnnotations: (unitId: string, value: Annotation[]) => void) => [Doc, AnnotationLibrary, AnnotationManager]; export default useUnit;