/** Native memory runs behind a bounded child boundary, never in the MCP process. */ import { type ChildProcess } from 'node:child_process'; export declare const MANAGED_MEMORY_NAMESPACE = "managed-workflow-evidence"; export declare const MANAGED_MEMORY_LIMITS: { readonly workers: 1; readonly requestBytes: 80000; readonly resultBytes: 200000; readonly rows: 20; readonly rowBytes: 8192; readonly timeoutMs: 15000; readonly idleMs: 5000; }; export type MemoryRequest = { operation: 'index'; id: string; value: string; taskType: string; } | { operation: 'recall'; taskType: string; allowedIds: string[]; }; export type MemoryRow = { key: string; namespace: typeof MANAGED_MEMORY_NAMESPACE; score: number; content: string; }; export type MemoryResult = { operation: 'index'; durable: true; hasEmbedding: boolean; } | { operation: 'recall'; available: boolean; rows: MemoryRow[]; }; /** The optional fork callback is an in-process host test seam, not a serialized tool argument. */ export declare class ManagedMemoryClient { private readonly slots; private readonly timeoutMs; private readonly idleMs; private readonly forkWorker; constructor(options?: { timeoutMs?: number; idleMs?: number; forkWorker?: (root: string) => ChildProcess; }); run(root: string, raw: unknown, authorize?: () => boolean): Promise; stats(): { workers: number; busy: number; }; close(): void; private remove; } export declare const managedMemoryClient: ManagedMemoryClient; export declare function nativeMemoryIndex(root: string, input: Omit, 'operation'>, authorize?: () => boolean): Promise<{ operation: "index"; durable: true; hasEmbedding: boolean; }>; export declare function nativeMemoryRecall(root: string, input: Omit, 'operation'>, authorize?: () => boolean): Promise<{ operation: "recall"; available: boolean; rows: MemoryRow[]; }>; //# sourceMappingURL=managed-memory-client.d.ts.map