import type { ToolResult } from "../../types.js"; import type { ToolRunOptions } from "../registry.js"; import { type SearchProvider } from "./providers/provider.js"; import "./providers/duckduckgo.js"; import "./providers/brave.js"; import "./providers/tavily.js"; import "./providers/exa.js"; import { type SearchProviderId, type WebSearchArgs, type WebSearchErrorKind, type WebSearchOutcome } from "./types.js"; export interface WebSearchOptions extends ToolRunOptions { provider?: SearchProviderId; providerOverride?: SearchProvider; resolveKey?: (id: SearchProviderId) => Promise; timeoutMs?: number; } export declare function webSearch(args: WebSearchArgs, options?: WebSearchOptions): Promise; export type { WebSearchOutcome, WebSearchErrorKind };