/** * @license * Copyright 2025 Google LLC * SPDX-License-Identifier: Apache-2.0 */ import type { ToolEditConfirmationDetails, ToolResult } from './tools.js'; import { BaseDeclarativeTool, BaseToolInvocation } from './tools.js'; import type { ModifiableDeclarativeTool, ModifyContext } from './modifiable-tool.js'; export declare const QWEN_CONFIG_DIR = ".eadp"; export declare const DEFAULT_CONTEXT_FILENAME = "EADP.md"; export declare const MEMORY_SECTION_HEADER = "## EADP Memories"; export declare function setGeminiMdFilename(newFilename: string | string[]): void; export declare function getCurrentGeminiMdFilename(): string; export declare function getAllGeminiMdFilenames(): string[]; interface SaveMemoryParams { fact: string; modified_by_user?: boolean; modified_content?: string; scope?: 'global' | 'project'; } declare class MemoryToolInvocation extends BaseToolInvocation { private static readonly allowlist; getDescription(): string; shouldConfirmExecute(_abortSignal: AbortSignal): Promise; execute(_signal: AbortSignal): Promise; } export declare class MemoryTool extends BaseDeclarativeTool implements ModifiableDeclarativeTool { static readonly Name: string; constructor(); protected validateToolParamValues(params: SaveMemoryParams): string | null; protected createInvocation(params: SaveMemoryParams): MemoryToolInvocation; static performAddMemoryEntry(text: string, memoryFilePath: string, fsAdapter: { readFile: (path: string, encoding: 'utf-8') => Promise; writeFile: (path: string, data: string, encoding: 'utf-8') => Promise; mkdir: (path: string, options: { recursive: boolean; }) => Promise; }): Promise; getModifyContext(_abortSignal: AbortSignal): ModifyContext; } export {};