import { Resource } from "../resource.js"; import type { MemoryBlock, MemoryBlockInfo, MemoryEntry, MemoryInitResult } from "../types.js"; export declare class Memory extends Resource { /** List all memory blocks with entry counts. */ blocks(): Promise<{ blocks: MemoryBlockInfo[]; total_core_entries: number; total_archival_entries: number; }>; /** List entries in a specific block. */ block(block: MemoryBlock): Promise<{ block: string; limit: number; entries: MemoryEntry[]; }>; /** List all core memory entries. */ entries(): Promise<{ entries: MemoryEntry[]; total: number; }>; /** Append a new memory entry. */ append(fact: string, params?: { block?: MemoryBlock; pinned?: boolean; }): Promise<{ entry: MemoryEntry; }>; /** Update a memory entry. */ update(id: string, params: { fact?: string; pinned?: boolean; }): Promise<{ entry: MemoryEntry; }>; /** Delete a memory entry. */ remove(id: string): Promise<{ ok: boolean; id: string; }>; /** Bootstrap memory from context documents. An LLM extracts structured facts. */ init(documents: Array<{ content: string; source?: string; }>, params?: { model?: string; }): Promise; }