/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import { BaseDeclarativeTool, type ToolInvocation, type ToolResult } from './tools.js'; import { Config } from '../config/config.js'; /** * Parameters for the InsertAtLine tool */ export interface InsertAtLineToolParams { /** * The absolute path to the file to modify */ absolute_path: string; /** * The 1-based line number to insert before. Content will be inserted before this line. */ line_number: number; /** * The content to insert */ content: string; } /** * Implementation of the InsertAtLine tool logic */ export declare class InsertAtLineTool extends BaseDeclarativeTool { private config; static readonly Name: string; constructor(config: Config); protected validateToolParamValues(params: InsertAtLineToolParams): string | null; protected createInvocation(params: InsertAtLineToolParams): ToolInvocation; }