import { z } from "zod"; import type { AgentTool } from "@kenkaiiii/gg-agent"; import { type GetNetworkPolicy } from "../core/network-guard.js"; /** * Block requests to private/internal network addresses to prevent SSRF. * Checks the hostname against known private IP ranges and reserved domains. */ export declare function isBlockedUrl(urlString: string): boolean; export declare function htmlToCleanText(html: string): string; /** A hyperlink shown in an outline render as `anchor text [number]`. */ export interface OutlineLink { number: number; url: string; } type LlmsCandidateKind = "llms" | "llms-full" | "llms-ctx" | "page-md"; interface LlmsCandidate { url: string; label: string; kind: LlmsCandidateKind; priority: number; } export declare function readBoundedBody(response: Response, maxBytes?: number): Promise; export declare function buildLlmsCandidates(url: string, maxLength: number): LlmsCandidate[]; export declare function createWebFetchTool(getNetworkPolicy?: GetNetworkPolicy): AgentTool; declare const parameters: z.ZodObject<{ url: z.ZodOptional; urls: z.ZodOptional>; follow: z.ZodOptional; max_length: z.ZodOptional; format: z.ZodOptional>; prefer_llms_txt: z.ZodOptional; }, z.core.$strip>; export {}; //# sourceMappingURL=web-fetch.d.ts.map