import type { ToolDefinition } from '../types/messages.js'; import { type SafeFetchPolicy, type WebResolvedAddress } from '../utils/safe-fetch.js'; export type { WebResolvedAddress }; /** Options for the fetch-URL tool, including its SSRF policy. */ export interface WebConnectorOptions extends SafeFetchPolicy { /** Gives up after this long, in milliseconds. Defaults to 10 seconds. */ timeoutMs?: number; /** Largest response read, in bytes. Longer responses are truncated. Defaults to 20,000. */ maxResponseBytes?: number; /** Redirects followed, each checked against the policy again. Defaults to 5. */ maxRedirects?: number; } /** * A `fetch_url` tool that reads text from public URLs allowed by the policy, refusing private * addresses. */ export declare function createFetchUrlTool(options?: WebConnectorOptions): ToolDefinition; /** A search tool around your own search function. */ export declare function createSearchTool(search: (query: string) => Promise, name?: string): ToolDefinition;