import { type PluginRegistry } from '@embedpdf/react-pdf-viewer'; export type PdfAnnotationToolId = 'highlight' | 'underline' | 'strikeout' | 'ink' | 'freeText'; export interface PdfAnnotationControllerState { activeToolId: string | null; annotationColor: string; annotationOpacity: number; annotationStrokeWidth: number; available: boolean; availableToolIds: readonly PdfAnnotationToolId[]; hasPendingChanges: boolean; selectedCount: number; supportsOpacity: boolean; supportsStrokeWidth: boolean; } export interface PdfAnnotationController { state: PdfAnnotationControllerState; deleteSelection: () => void; getSelectionLocation: () => { annotationId: string; pageIndex: number; } | null; locateAnnotation: (pageIndex: number, annotationId: string) => boolean; setAnnotationColor: (color: string) => void; setAnnotationOpacity: (opacity: number) => void; setAnnotationStrokeWidth: (strokeWidth: number) => void; selectTool: (toolId: PdfAnnotationToolId | null) => void; } export declare function usePdfAnnotationController(registry: PluginRegistry | null): PdfAnnotationController;