/** * Web Search Integration for Grounding * * Provides web search and page fetching capabilities for claim verification. * Uses Brave Search API for search and axios for page fetching. * Includes LRU caching to avoid duplicate API calls. */ export interface SearchResult { url: string; title: string; snippet: string; } /** * Search the web using Brave Search API. * Requires BRAVE_API_KEY environment variable. * Results are cached for 24 hours to avoid duplicate API calls. */ export declare function webSearch(query: string): Promise; /** * Fetch a web page and extract text content. * Strips HTML tags and returns plain text. * Results are cached for 7 days to avoid duplicate fetches. */ export declare function fetchPage(url: string): Promise; /** * Create search and fetch functions bound to the web search API. * This is the interface expected by the grounding module. */ export declare function createWebSearchInterface(): { search: (query: string) => Promise; fetch: (url: string) => Promise; }; //# sourceMappingURL=websearch.d.ts.map