type Row = { key: string; namespace: string; content: string; hasEmbedding?: boolean; }; export type NativeMemoryAdapter = { getEntry: (options: Record) => Promise<{ success: boolean; found: boolean; entry?: Row; } | null>; storeEntry: (options: Record) => Promise<{ success: boolean; persistWarning?: unknown; embedding?: { dimensions?: number; }; error?: unknown; } | null>; searchEntries: (options: Record) => Promise<{ success: boolean; results: Array<{ key: string; namespace: string; score: number; }>; } | null>; }; /** Pure operation seam for host tests. Serialized callers cannot supply an adapter. */ export declare function executeManagedMemory(raw: unknown, adapter: NativeMemoryAdapter, dbPath: string, beforeWrite?: () => Promise): Promise<{ v: number; requestId: string; ok: boolean; operation: string; durable: boolean; hasEmbedding: boolean; available?: undefined; rows?: undefined; } | { v: number; requestId: string; ok: boolean; operation: string; available: boolean; rows: { key: string; namespace: string; score: number; content: string; }[]; durable?: undefined; hasEmbedding?: undefined; }>; export {}; //# sourceMappingURL=managed-memory-worker.d.ts.map