export type MemoryTarget = 'user' | 'agent'; export interface MemoryProvider { readonly name: string; isAvailable(): boolean; initialize(sessionId: string, opts?: Record): Promise; getToolSchemas(): Array>; systemPromptBlock(): string; prefetch(query: string, sessionId: string): Promise; syncTurn(userContent: string, assistantContent: string, sessionId: string): Promise; handleToolCall(toolName: string, args: Record): Promise; shutdown(): void; } declare const CHAR_LIMITS: Record; export declare function sanitizeContext(text: string): string; export declare function buildMemoryContextBlock(rawContext: string): string; export declare class MemoryManager { private providers; private toolToProvider; private hasExternal; private memoryDir; constructor(memoryDir: string); addProvider(provider: MemoryProvider): void; buildSystemPrompt(): string; prefetchAll(query: string, sessionId: string): Promise; syncAll(userContent: string, assistantContent: string, sessionId: string): Promise; getAllToolSchemas(): Array>; getAllToolNames(): Set; hasTool(toolName: string): boolean; handleToolCall(toolName: string, args: Record): Promise; initializeAll(sessionId: string, opts?: Record): Promise; shutdownAll(): void; addMemory(target: MemoryTarget, content: string): boolean; replaceMemory(target: MemoryTarget, oldText: string, newContent: string): boolean; removeMemory(target: MemoryTarget, oldText: string): boolean; getMemoryForPrompt(target: MemoryTarget): string; private loadMemoryFile; private saveMemoryFile; } export { CHAR_LIMITS }; //# sourceMappingURL=memory-manager.d.ts.map