/** * Search Group — Auto-Mode Query Classifier * * Heuristic that inspects a query string and selects the best search * strategy: 'fts', 'semantic', or 'hybrid'. * * This is the core of the `mode: 'auto'` default in `search_entries`. */ /** Search mode types supported by search_entries */ export type SearchMode = 'auto' | 'fts' | 'semantic' | 'hybrid'; /** * Classify a search query into the optimal search mode. * * Rules (applied in order): * 1. Quoted phrases → FTS5 (exact match intent) * 2. 1-2 words → FTS5 (keyword match is more precise) * 3. Questions → Semantic (conceptual intent) * 4. 3+ words → Hybrid RRF (benefits from both) * * @param query - The search query string * @returns The recommended search mode */ export declare function classifyQuery(query: string): Exclude; /** * Resolve the effective search mode from user-specified mode and query. * * - Explicit modes ('fts', 'semantic', 'hybrid') are used as-is * - 'auto' (default) delegates to classifyQuery() * * @param mode - User-specified search mode * @param query - The search query string * @returns The resolved search mode and whether it was auto-selected */ export declare function resolveSearchMode(mode: SearchMode, query: string): { resolvedMode: Exclude; isAuto: boolean; }; //# sourceMappingURL=auto.d.ts.map