UNPKG

@vue-pdf-viewer/viewer

Version:

The PDF Viewer component for Vue 3 and Nuxt

12 lines (11 loc) 494 B
import { Ref, ShallowRef } from 'vue'; import { TextHighlight, MatchHighlight } from '@/components'; import type { PDFDocumentProxy } from 'pdfjs-dist'; export interface UseHighlight { highlight: (args: TextHighlight[]) => Promise<void>; highlightMatches: Ref<MatchHighlight[]>; highlightKeywords: Ref<TextHighlight[] | undefined>; clear: () => void; } declare const useHighlight: (pdfDoc: ShallowRef<PDFDocumentProxy | undefined>) => UseHighlight; export default useHighlight;