/**
 * Text search algorithm for document viewer.
 *
 * Walks the JsLayoutPage hierarchy to extract text and glyph positions,
 * then searches across all loaded pages and returns matches with
 * pre-computed bounding rectangles for highlight rendering.
 */
import type { JsLayoutPage } from "../../../wasm/udoc.js";
import type { SearchMatch } from "../state";
/**
 * Execute text search across all loaded pages.
 *
 * @param query - Search string
 * @param caseSensitive - Whether to match case
 * @param pageLayouts - Map of page index to JsLayoutPage
 * @param pageCount - Total number of pages
 * @returns Array of search matches with pre-computed highlight rects
 */
export declare function executeSearch(query: string, caseSensitive: boolean, pageLayouts: Map<number, JsLayoutPage>, pageCount: number): SearchMatch[];
//# sourceMappingURL=search.d.ts.map