import type { UserContextConfig } from '../user-context/config.js'; export type MemorySource = 'session' | 'agentProfile' | 'understanding' | 'workspace'; export type MemoryWriteTarget = 'agentProfile' | 'understanding' | 'workspace'; export type MemoryWriteDecision = 'allow' | 'confirm' | 'deny'; export interface MemoryCandidate { target: MemoryWriteTarget; content: string; source: string; confidence?: number; sensitive?: boolean; } export interface MemoryWriteCheckResult { decision: MemoryWriteDecision; reason: string; } export interface MemoryRuntime { readableSources: MemorySource[]; canRead: (source: MemorySource) => boolean; checkWrite: (candidate: MemoryCandidate) => MemoryWriteCheckResult; } export declare function buildMemoryRuntime(userContext: UserContextConfig): MemoryRuntime;