import type { PDFDocumentProxy } from "pdfjs-dist";
import type { EventBus, PDFFindController } from "pdfjs-dist/web/pdf_viewer.mjs";
import type { RefObject } from "react";
export interface UsePdfViewerSearchResult {
	query: string;
	totalMatches: number;
	currentMatchIndex: number;
	isSearchOpen: boolean;
	setQuery: (query: string) => void;
	nextMatch: () => void;
	prevMatch: () => void;
	openSearch: () => void;
	closeSearch: () => void;
}
export declare function usePdfViewerSearch(eventBusRef: RefObject<EventBus | null>, findControllerRef: RefObject<PDFFindController | null>, document: PDFDocumentProxy | undefined): UsePdfViewerSearchResult;
