@pdf-viewer/react
Version:
A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.
14 lines (13 loc) • 540 B
TypeScript
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;
setCurrentMatchPosition: import('react').Dispatch<import('react').SetStateAction<number>>;
};