@vue-pdf-viewer/viewer
Version:
The PDF Viewer component for Vue 3 and Nuxt
6 lines (5 loc) • 344 B
TypeScript
import { ShallowRef } from 'vue';
import type { PDFDocumentProxy } from 'pdfjs-dist';
import { SearchControlValue, HighlightOptions } from '@/components';
declare const useSearch: (pdfDoc: ShallowRef<PDFDocumentProxy | undefined>, initialSearch?: string, options?: ShallowRef<HighlightOptions>) => SearchControlValue;
export default useSearch;