UNPKG

@pdf-viewer/react

Version:

A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.

11 lines (10 loc) 404 B
import { PDFDocumentProxy } from 'pdfjs-dist'; import { MatchHighlight, TextHighlight } from '../types'; interface UseHighlight { highlight: (value: TextHighlight[]) => Promise<void>; highlightMatches: MatchHighlight[]; highlightKeywords: TextHighlight[] | undefined; clear: () => void; } export declare const useHighlight: (pdf: PDFDocumentProxy | undefined) => UseHighlight; export {};