/** * The search query language, shared by every search surface: the browser * title lane, the server index, and agents. * * - Words are ANDed: every word must match. * - `OR` (uppercase) between words makes them alternatives. * - `"quoted text"` is a phrase. * - `-word` or `-"phrase"` excludes. * - `intitle:word` matches the title only. * * Pure and dependency-free, so browser code can import it from * `@agent-native/core/search-query`. */ export interface SearchQueryTerm { text: string; phrase: boolean; negated: boolean; titleOnly: boolean; } export interface SearchQueryGroup { terms: SearchQueryTerm[]; } export interface ParsedSearchQuery { groups: SearchQueryGroup[]; negatives: SearchQueryTerm[]; empty: boolean; } export declare function parseSearchQuery(input: string): ParsedSearchQuery; export declare function searchQueryNeedles(parsed: ParsedSearchQuery): string[];