import { type ResolveWorkerHost } from "../../security/sandbox/worker-egress-guard.js"; /** Input payload for hosted web_fetch. */ export type HostedWebFetchToolInput = { url: string; cursor?: string; max_content_chars?: number; }; /** Output payload matching provider-native web_fetch result shape. */ export type HostedWebFetchToolOutput = { type: "web_fetch_result"; url: string; content: { type: "document"; source: { type: "text"; mediaType: string; data: string; }; }; retrievedAt: string; status: number; complete: boolean; truncated: boolean; page_info: { offset: number; returned_chars: number; total_chars: number; next: string | null; }; }; /** Options accepted by hosted web_fetch. */ export type HostedWebFetchToolOptions = { fetch?: typeof fetch; resolveHost?: ResolveWorkerHost; maxContentChars?: number; maxResponseBytes?: number; timeoutMs?: number; }; /** Create hosted web_fetch tool that allows direct explicit URL fetches. */ export declare function createHostedWebFetchTool(options?: HostedWebFetchToolOptions): import("../../tool/types.js").Tool; //# sourceMappingURL=web-fetch-tool.d.ts.map