import { IStreamLogger } from '../PSAgentLogger'; import { PSAgentTool } from '../PSAgentTool'; export interface Memory { path: string; content?: string; } export interface IMemoryStore { viewMemories(): Promise; getMemoryByPath(relativePath: string, view_range?: number[]): Promise; setMemory(mem: Memory): Promise; deleteMemory(relativePath: string): Promise; renameMemory(oldRelativePath: string, newRelativePath: string): Promise; insertIntoMemory(relativePath: string, lineNumber: number, text: string): Promise; replaceInMemory(relativePath: string, oldStr: string, newStr: string): Promise; } export declare class LocalFileMemoryStore implements IMemoryStore { private lastModified; private memoryRoot; constructor(options?: { initialmemories?: Memory[]; directory?: string; }); private validatePath; viewMemories(): Promise; getMemoryByPath(relativePath: string, view_range?: number[]): Promise; setMemory(mem: Memory): Promise; deleteMemory(relativePath: string): Promise; renameMemory(oldRelativePath: string, newRelativePath: string): Promise; insertIntoMemory(relativePath: string, lineNumber: number, text: string): Promise; replaceInMemory(relativePath: string, oldStr: string, newStr: string): Promise; get LastModified(): string; } export declare class PSMemoryTool extends PSAgentTool { static readonly toolName = "memory_tool"; private store; constructor(options: { store: IMemoryStore; }); run(_input: Record, log?: IStreamLogger): Promise>; private run_view; private run_create; private run_str_replace; private run_insert; private run_delete; private run_rename; }