import type { Database } from "./db.js"; import type { BatchSearchRequest, BatchSearchResult, SearchOptions, SearchResult } from "../search/types.js"; export type { BatchSearchRequest, BatchSearchResult, SearchOptions, SearchResult, } from "../search/types.js"; export declare class SearchEngine { private db; private planner; constructor(db: Database); search(query: string, opts?: SearchOptions): SearchResult[]; searchMany(requests: BatchSearchRequest[]): BatchSearchResult[]; private searchWithPlan; private expandPlans; private searchSingle; private fetchCandidates; private buildFtsQuery; private quoteTerm; private rerank; private scoreCandidate; private collapseDuplicates; private preferenceScore; private canonicalPageKey; private inferPathType; private pathTypeScore; private keywordOverlap; private hasPhraseMatch; private primaryTitle; private extractVersionTag; }