import type { HttpClient } from "../core/http.js"; import type { PutMemoryRequest, MemoryEntryResponse, MemoryEntryListResponse, NamespaceListResponse, MemorySearchRequest, MemorySearchResponse, OneclawResponse } from "../types.js"; /** * Memory resource — per-agent key-value storage organized by namespace * with optional TTL for automatic expiry. */ export declare class MemoryResource { private readonly http; constructor(http: HttpClient); /** Store or update a memory entry under a namespace and key. */ put(agentId: string, namespace: string, key: string, data: PutMemoryRequest): Promise>; /** Retrieve a single memory entry by namespace and key. */ get(agentId: string, namespace: string, key: string): Promise>; /** List memory entries within a namespace. */ list(agentId: string, namespace: string, params?: { prefix?: string; limit?: number; offset?: number; }): Promise>; /** List all namespaces that have memory entries for an agent. */ listNamespaces(agentId: string): Promise>; /** Delete a single memory entry by namespace and key. */ delete(agentId: string, namespace: string, key: string): Promise>; /** Delete all memory entries within a namespace. */ deleteNamespace(agentId: string, namespace: string): Promise>; /** Semantic search over memory entries within a namespace. */ search(agentId: string, data: MemorySearchRequest): Promise>; } //# sourceMappingURL=memory.d.ts.map