import { MemoryBankManager } from '../../core/MemoryBankManager.js'; /** * Definition of the main Memory Bank tools */ export declare const coreTools: ({ name: string; description: string; inputSchema: { type: string; properties: { path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; additionalProperties: boolean; required?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { path: { type: string; description: string; }; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; required: string[]; additionalProperties?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { verbose: { type: string; description: string; default: boolean; }; path?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; required: never[]; additionalProperties?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { filename: { type: string; description: string; }; includeEtag: { type: string; description: string; default: boolean; }; path?: undefined; verbose?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; required: string[]; additionalProperties?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { filename: { type: string; description: string; }; content: { type: string; description: string; }; ifMatchEtag: { type: string; description: string; }; path?: undefined; verbose?: undefined; includeEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; required: string[]; additionalProperties?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { includeEtags: { type: string; description: string; default: boolean; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; additionalProperties: boolean; required?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { maxProgressEntries: { type: string; description: string; default: number; }; maxDecisions: { type: string; description: string; default: number; }; includeSystemPatterns: { type: string; description: string; default: boolean; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; additionalProperties: boolean; required?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { query: { type: string; description: string; }; files: { type: string; items: { type: string; properties?: undefined; required?: undefined; }; description: string; }; maxResults: { type: string; description: string; default: number; }; caseSensitive: { type: string; description: string; default: boolean; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; required: string[]; additionalProperties?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { backupDir: { type: string; description: string; }; listOnly: { type: string; description: string; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; additionalProperties: boolean; required?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { backupId: { type: string; description: string; }; createPreRestoreBackup: { type: string; description: string; default: boolean; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; required: string[]; additionalProperties?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { type: { type: string; enum: string[]; description: string; }; summary: { type: string; description: string; }; details: { type: string; description: string; }; files: { type: string; items: { type: string; properties?: undefined; required?: undefined; }; description: string; }; tags: { type: string; items: { type: string; }; description: string; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; required: string[]; additionalProperties?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { note: { type: string; description: string; }; category: { type: string; enum: string[]; description: string; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; required: string[]; additionalProperties?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { add: { type: string; items: { type: string; }; description: string; }; remove: { type: string; items: { type: string; }; description: string; }; replace: { type: string; items: { type: string; }; description: string; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; files?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; stopOnError?: undefined; }; additionalProperties?: undefined; required?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { files: { type: string; items: { type: string; properties?: undefined; required?: undefined; }; description: string; }; includeEtags: { type: string; description: string; default: boolean; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; stopOnError?: undefined; }; required: string[]; additionalProperties?: undefined; }; } | { name: string; description: string; inputSchema: { type: string; properties: { files: { type: string; items: { type: string; properties: { filename: { type: string; description: string; }; content: { type: string; description: string; }; ifMatchEtag: { type: string; description: string; }; }; required: string[]; }; description: string; }; stopOnError: { type: string; description: string; default: boolean; }; path?: undefined; verbose?: undefined; filename?: undefined; includeEtag?: undefined; content?: undefined; ifMatchEtag?: undefined; includeEtags?: undefined; maxProgressEntries?: undefined; maxDecisions?: undefined; includeSystemPatterns?: undefined; query?: undefined; maxResults?: undefined; caseSensitive?: undefined; backupDir?: undefined; listOnly?: undefined; backupId?: undefined; createPreRestoreBackup?: undefined; type?: undefined; summary?: undefined; details?: undefined; tags?: undefined; note?: undefined; category?: undefined; add?: undefined; remove?: undefined; replace?: undefined; }; required: string[]; additionalProperties?: undefined; }; })[]; /** * Returns comprehensive instructions for using the Memory Bank MCP server. * This is the canonical entry point — call it FIRST in every session. * * The instructions are static and require no initialized Memory Bank. */ export declare function handleGetInstructions(): { content: { type: string; text: string; }[]; }; /** * Processes the set_memory_bank_path tool * @param memoryBankManager Memory Bank Manager * @param customPath Custom path for the Memory Bank * @returns Operation result */ export declare function handleSetMemoryBankPath(memoryBankManager: MemoryBankManager, customPath?: string): Promise<{ content: { type: string; text: string; }[]; }>; /** * Processes the initialize_memory_bank tool * @param memoryBankManager Memory Bank Manager * @param dirPath Directory path where the Memory Bank will be initialized * @returns Operation result */ export declare function handleInitializeMemoryBank(memoryBankManager: MemoryBankManager, dirPath: string): Promise<{ content: { type: string; text: string; }[]; }>; /** * Processes the read_memory_bank_file tool * @param memoryBankManager Memory Bank Manager * @param filename Name of the file to read * @param includeEtag Whether to include ETag in response (default: true) * @returns Operation result with content and optional ETag */ export declare function handleReadMemoryBankFile(memoryBankManager: MemoryBankManager, filename: string, includeEtag?: boolean): Promise<{ content: { type: string; text: string; }[]; isError?: undefined; } | { content: { type: string; text: string; }[]; isError: boolean; }>; /** * Processes the write_memory_bank_file tool * @param memoryBankManager Memory Bank Manager * @param filename Name of the file to write * @param content Content to write to the file * @param ifMatchEtag Optional ETag for optimistic concurrency control * @returns Operation result */ export declare function handleWriteMemoryBankFile(memoryBankManager: MemoryBankManager, filename: string, content: string, ifMatchEtag?: string): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * Processes the list_memory_bank_files tool * @param memoryBankManager Memory Bank Manager * @returns Operation result */ export declare function handleListMemoryBankFiles(memoryBankManager: MemoryBankManager): Promise<{ content: { type: string; text: string; }[]; isError?: undefined; } | { content: { type: string; text: string; }[]; isError: boolean; }>; /** * Processes the get_memory_bank_status tool * @param memoryBankManager Memory Bank Manager * @returns Operation result */ export declare function handleGetMemoryBankStatus(memoryBankManager: MemoryBankManager): Promise<{ content: { type: string; text: string; }[]; isError?: undefined; } | { content: { type: string; text: string; }[]; isError: boolean; }>; /** * Processes the migrate_file_naming tool * @param memoryBankManager Memory Bank Manager instance * @returns Operation result */ export declare function handleMigrateFileNaming(memoryBankManager: MemoryBankManager): Promise<{ content: { type: string; text: string; }[]; }>; /** * Processes the debug_mcp_config tool * * This function collects and returns detailed information about the current * MCP configuration, including Memory Bank status, mode information, system details, * and other relevant configuration data. * * @param memoryBankManager Memory Bank Manager instance * @param verbose Whether to include detailed information * @returns Operation result with configuration details */ export declare function handleDebugMcpConfig(memoryBankManager: MemoryBankManager, verbose?: boolean): Promise<{ content: { type: string; text: string; }[]; isError?: undefined; } | { content: { type: string; text: string; }[]; isError: boolean; }>; /** * Processes the get_context_bundle tool * * Returns all core Memory Bank files in a single response for quick context loading. * This is the #1 operational use-case for memory banks - quickly loading context * when starting a new session or when context window limits are a concern. * * @param memoryBankManager Memory Bank Manager instance * @param includeEtags Whether to include ETags for each file * @returns Bundle of all core files with optional ETags */ export declare function handleGetContextBundle(memoryBankManager: MemoryBankManager, includeEtags?: boolean): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * Processes the get_context_digest tool * * Returns a compact summary of the Memory Bank for context-limited situations. * Useful when agents need quick access to the most relevant information. * * @param memoryBankManager Memory Bank Manager instance * @param maxProgressEntries Maximum progress entries to return * @param maxDecisions Maximum decisions to return * @param includeSystemPatterns Whether to include system patterns * @returns Compact digest of Memory Bank state */ export declare function handleGetContextDigest(memoryBankManager: MemoryBankManager, maxProgressEntries?: number, maxDecisions?: number, includeSystemPatterns?: boolean): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * Processes the search_memory_bank tool * * Performs full-text search across Memory Bank files. * * @param memoryBankManager Memory Bank Manager instance * @param query Search query * @param files Optional list of files to search * @param maxResults Maximum results to return * @param caseSensitive Whether search is case-sensitive * @returns Search results */ export declare function handleSearchMemoryBank(memoryBankManager: MemoryBankManager, query: string, files?: string[], maxResults?: number, caseSensitive?: boolean): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * Processes the create_backup tool * * Creates a timestamped backup of the current Memory Bank state, * or lists existing backups if listOnly is true. * * @param memoryBankManager Memory Bank Manager instance * @param backupDir Optional custom backup directory * @param listOnly If true, lists backups instead of creating one * @returns Operation result with backup path or list */ export declare function handleCreateBackup(memoryBankManager: MemoryBankManager, backupDir?: string, listOnly?: boolean): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * Processes the restore_backup tool * * Restores the Memory Bank from a specified backup. * * @param memoryBankManager Memory Bank Manager instance * @param backupId The backup ID to restore from * @param createPreRestoreBackup Whether to backup current state before restore * @returns Operation result with restore status */ export declare function handleRestoreBackup(memoryBankManager: MemoryBankManager, backupId: string, createPreRestoreBackup?: boolean): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * Progress entry type definition */ type ProgressEntryType = 'feature' | 'fix' | 'refactor' | 'docs' | 'test' | 'chore' | 'other'; /** * Processes the add_progress_entry tool * * Adds a structured progress entry to the Memory Bank. * * @param memoryBankManager Memory Bank Manager instance * @param type Type of progress entry * @param summary Brief summary * @param details Optional detailed description * @param files Optional list of affected files * @param tags Optional tags for categorization * @returns Operation result */ export declare function handleAddProgressEntry(memoryBankManager: MemoryBankManager, type: ProgressEntryType, summary: string, details?: string, files?: string[], tags?: string[]): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * Session note category type */ type SessionNoteCategory = 'observation' | 'blocker' | 'question' | 'decision' | 'todo' | 'other'; /** * Processes the add_session_note tool * * Adds a timestamped session note to the active context. * * @param memoryBankManager Memory Bank Manager instance * @param note The note text * @param category Optional category * @returns Operation result */ export declare function handleAddSessionNote(memoryBankManager: MemoryBankManager, note: string, category?: SessionNoteCategory): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * Processes the update_tasks tool * * Updates the tasks list in active context. * * @param memoryBankManager Memory Bank Manager instance * @param add Tasks to add * @param remove Tasks to remove * @param replace Tasks to replace entire list * @returns Operation result */ export declare function handleUpdateTasks(memoryBankManager: MemoryBankManager, add?: string[], remove?: string[], replace?: string[]): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * Processes the batch_read_files tool * * Reads multiple files in a single request. * * @param memoryBankManager Memory Bank Manager instance * @param files List of filenames to read * @param includeEtags Whether to include ETags * @returns Operation result with file contents */ export declare function handleBatchReadFiles(memoryBankManager: MemoryBankManager, files: string[], includeEtags?: boolean): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; /** * File write request for batch operations */ interface BatchWriteRequest { filename: string; content: string; ifMatchEtag?: string; } /** * Processes the batch_write_files tool * * Writes multiple files in a single request with optional ETag validation. * * @param memoryBankManager Memory Bank Manager instance * @param files Array of files to write * @param stopOnError Whether to stop on first error * @returns Operation result with write status */ export declare function handleBatchWriteFiles(memoryBankManager: MemoryBankManager, files: BatchWriteRequest[], stopOnError?: boolean): Promise<{ content: { type: string; text: string; }[]; isError: boolean; } | { content: { type: string; text: string; }[]; isError?: undefined; }>; export {}; //# sourceMappingURL=CoreTools.d.ts.map