/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { ToolInvocation, ToolResult } from './tools.js'; import { BaseDeclarativeTool } from './tools.js'; import type { CallableTool } from '@google/genai'; type ToolParams = Record; export declare class DiscoveredMCPTool extends BaseDeclarativeTool { private readonly mcpTool; readonly serverName: string; readonly serverToolName: string; readonly parameterSchema: unknown; readonly timeout?: number | undefined; readonly trust?: boolean | undefined; constructor(mcpTool: CallableTool, serverName: string, serverToolName: string, description: string, parameterSchema: unknown, timeout?: number | undefined, trust?: boolean | undefined, nameOverride?: string); asFullyQualifiedTool(): DiscoveredMCPTool; protected createInvocation(params: ToolParams): ToolInvocation; } /** Visible for testing */ export declare function generateValidName(name: string): string; export {};