UNPKG

@vue-pdf-viewer/viewer

Version:

The PDF Viewer component for Vue 3 and Nuxt

9 lines (8 loc) 765 B
import type { TextContent } from 'pdfjs-dist/types/src/display/text_layer'; import type { HighlightOptions, Match } from './types'; declare function isMatchEntireWord(content: string, startIdx: number, length: number): boolean; declare function highlightMatches(matches: Match[], textContent: TextContent, textDivs: HTMLElement[]): void; declare function resetDivs(textContent: TextContent, textDivs: HTMLElement[]): void; declare function findMatches(queries: (string | RegExp)[], textContent: TextContent, pageIndex: number, options: HighlightOptions): Match[]; declare function getHighlightOptionsWithDefaults(options?: HighlightOptions): HighlightOptions; export { findMatches, highlightMatches, resetDivs, getHighlightOptionsWithDefaults, isMatchEntireWord };