@tato30/vue-pdf
Version:
PDF component for Vue 3
7 lines (6 loc) • 492 B
TypeScript
import type { TextContent } from 'pdfjs-dist/types/src/display/text_layer';
import type { HighlightOptions, Match } from '../types';
declare function highlightMatches(matches: Match[], textContent: TextContent, textDivs: HTMLElement[]): void;
declare function resetDivs(textContent: TextContent, textDivs: HTMLElement[]): void;
declare function findMatches(queries: string[], textContent: TextContent, options: HighlightOptions): Match[];
export { findMatches, highlightMatches, resetDivs };