/** * CogmemAi Cloud Storage Backend — wraps existing api() calls. * This is the default mode. All 29 tools work with full Intelligence Engine. */ import type { StorageBackend } from './storage.js'; import type { StorageMode } from './config.js'; export declare class CloudStorage implements StorageBackend { readonly mode: StorageMode; private apiKey?; constructor(apiKey?: string); /** * WAF-safe encode a free-text field. The host WAF (ModSecurity) scores the raw * POST body and 404s long/dense prose that accumulates enough "suspicious" * tokens (quotes, parens, %, slashes, tags). Base64-encoding the text and * marking it "CMB64:" means the WAF only ever sees innocuous base64; the WP * REST handler decodes it. Only applied on the cloud HTTP path (local/hybrid * backends store text directly and have no decoder). Backward compatible: the * server treats any unmarked value as raw. */ private encField; saveMemory(body: Record): Promise; recallMemories(body: Record): Promise; getProjectContext(params: Record): Promise; listMemories(params: Record): Promise; deleteMemory(id: number): Promise; updateMemory(id: number, body: Record): Promise; bulkDelete(ids: number[]): Promise; restoreMemory(id: number): Promise; listTrash(params: Record): Promise; bulkUpdate(updates: unknown[]): Promise; exportMemories(params: Record): Promise; importMemories(body: Record): Promise; saveSessionSummary(body: Record): Promise; listTags(params: Record): Promise; getUsage(): Promise; feedbackMemory(body: Record): Promise; extractMemories(body: Record): Promise; ingestDocument(body: Record): Promise; linkMemories(id: number, body: Record): Promise; getMemoryLinks(id: number): Promise; getMemoryVersions(id: number): Promise; getAnalytics(params: Record): Promise; promoteMemory(id: number): Promise; consolidateMemories(body: Record): Promise; saveCorrection(body: Record): Promise; setReminder(body: Record): Promise; getStaleMemories(params: Record): Promise; generateSkills(body: Record): Promise; extractPrinciples(body: Record): Promise; smartRecall(body: Record): Promise; }