UNPKG

@pdf-viewer/react

Version:

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

15 lines (14 loc) 596 B
import { SearchOptions, MatchValue } from '../types'; export declare const useSearch: (options?: SearchOptions, initialSearch?: string) => { search: string; setSearch: import('react').Dispatch<import('react').SetStateAction<string>>; loading: boolean; matches: MatchValue[]; totalMatches: number; currentMatchPosition: number; currentMatch: MatchValue | null; nextMatch: () => void; prevMatch: () => void; currentMatchElement: HTMLElement | null; setCurrentMatchElement: import('react').Dispatch<import('react').SetStateAction<HTMLElement | null>>; };