export type MemoryId = string; export interface MemoryMetadata { source?: 'claude-code' | 'cursor' | 'openclaw' | 'manual'; session_id?: string; user_tags?: string[]; privacy?: 'private' | 'shared'; [key: string]: unknown; } export interface MemoryItem { id: MemoryId; text: string; metadata: MemoryMetadata; created_at: string; updated_at: string; } export interface MemorySearchResult { item: MemoryItem; score: number; } export interface SearchOptions { k?: number; min_score?: number; privacy?: 'private' | 'shared' | 'all'; user_id?: string; } export interface MemoryStore { put(text: string, metadata?: MemoryMetadata): Promise; search(query: string, opts?: SearchOptions): Promise; recent(limit?: number, user_id?: string): Promise; delete(id: MemoryId): Promise; health(): Promise<{ ok: boolean; error?: string; backend: string; }>; } export declare class MemoryError extends Error { code: string; constructor(code: string, message: string); } export declare const MEMORY_ERROR_CODES: { readonly BACKEND_UNREACHABLE: "MEMORY_BACKEND_UNREACHABLE"; readonly AUTH_FAILED: "MEMORY_AUTH_FAILED"; readonly NOT_FOUND: "MEMORY_NOT_FOUND"; readonly INVALID_INPUT: "MEMORY_INVALID_INPUT"; }; //# sourceMappingURL=types.d.ts.map