import type { Tool } from '@wrongstack/core/types'; export interface SearchResult { title: string; url: string; snippet: string; score: number; } export interface CacheEntry { results: SearchResult[]; source: string; timestamp: number; } export interface SearchInput { query: string; num_results?: number | undefined; source?: 'duckduckgo' | 'google' | 'bing' | undefined; skip_cache?: boolean | undefined; } export interface SearchOutput { query: string; results: { title: string; url: string; snippet: string; }[]; source: string; truncated: boolean; cached: boolean; } export declare const searchTool: Tool; /** Exposed for tests so they can reset the module-level cache between cases. */ export declare function __clearSearchCache(): void; /** Exposed for tests so they can seed the module-level cache between cases. */ export declare function __setSearchCacheForTest(key: string, entry: CacheEntry): void; /** Exposed for tests so they can observe module-level cache size. */ export declare function __getSearchCacheSizeForTest(): number; //# sourceMappingURL=search.d.ts.map