import type { Annotation, Plugin, DeletedAnnotationData, XfdfImportResult } from "@vue-pdf-viewer/shared"; import { type VPdfAnnotationPluginOptions } from "./types"; export interface AnnotationPluginApi { exportToPdf: (annotations: Annotation[], deletedAnnotations?: DeletedAnnotationData[] | string[]) => Promise; exportToXfdf: (annotations: Annotation[], pdfFilename?: string) => string; importFromXfdf: (xfdfString: string, pageCount: number) => XfdfImportResult; } export interface AnnotationPluginInstance extends Plugin { getApi: () => AnnotationPluginApi | null; } declare const VPdfAnnotationPlugin: (options?: VPdfAnnotationPluginOptions) => AnnotationPluginInstance; export * from "./types"; export * from "./components/index"; export default VPdfAnnotationPlugin;