import { type RefObject } from 'react'; import type { Annotation, AnnotationSelection, TextQuoteAnchor } from '../types/annotations'; interface UseAnnotationsParams { rootRef: RefObject; annotations: Annotation[]; activeAnnotationId?: string | null; onSelectionChange?: (selection: AnnotationSelection | null) => void; onAnnotationClick?: (annotationId: string, event: MouseEvent) => void; } export interface AnnotationMount { annotation: Annotation; host: HTMLElement; resolved: boolean; } export declare function useAnnotations({ rootRef, annotations, activeAnnotationId, onSelectionChange, onAnnotationClick, }: UseAnnotationsParams): AnnotationMount[]; export type { TextQuoteAnchor }; //# sourceMappingURL=useAnnotations.d.ts.map