/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { BaseDeclarativeTool, type ToolInvocation, type ToolResult } from './tools.js'; import type { MessageBus } from '../confirmation-bus/message-bus.js'; import { Config } from '../config/config.js'; /** * Parses a prompt to extract valid URLs and identify malformed ones. * Strips common trailing punctuation from tokens before URL validation. */ export declare function parsePrompt(text: string): { validUrls: string[]; errors: string[]; }; /** * Parameters for the WebFetch tool */ export interface GoogleWebFetchToolParams { /** * The prompt containing URL(s) (up to 20) and instructions for processing their content. */ prompt: string; } /** * Implementation of the WebFetch tool logic */ export declare class GoogleWebFetchTool extends BaseDeclarativeTool { private readonly config; static readonly Name: string; constructor(config: Config, messageBus?: MessageBus); protected validateToolParamValues(params: GoogleWebFetchToolParams): string | null; protected createInvocation(params: GoogleWebFetchToolParams, messageBus?: MessageBus, toolName?: string, displayName?: string): ToolInvocation; }