@vue-pdf-viewer/viewer
Version:
A vue-pdf-viewer component for Vue and Nuxt. Suitable for vue-pdf document.
6 lines (5 loc) • 350 B
TypeScript
import { ShallowRef } from 'vue';
import type { PDFDocumentProxy } from 'pdfjs-dist';
import type { SearchControlValue, HighlightOptions } from '@/utils/types';
declare const useSearch: (pdfDoc: ShallowRef<PDFDocumentProxy | undefined>, initialSearch?: string, options?: ShallowRef<HighlightOptions>) => SearchControlValue;
export default useSearch;