/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { SimpleConfig } from '../base/config.js'; import type { ToolInvocation, ToolResult } from '../base/tools.js'; import { BaseDeclarativeTool } from '../base/tools.js'; /** * Parameters for the WriteFile tool */ export interface WriteFileToolParams { /** * The absolute path to the file to write to */ file_path: string; /** * The content to write to the file */ content: string; } /** * Implementation of the WriteFile tool logic */ export declare class WriteFileTool extends BaseDeclarativeTool { private readonly config; static readonly Name: string; constructor(config: SimpleConfig); protected validateToolParamValues(params: WriteFileToolParams): string | null; protected createInvocation(params: WriteFileToolParams): ToolInvocation; } //# sourceMappingURL=write-file.d.ts.map