/** * Memory tracker state. The container wrappers consult a module-level * "current context" getter so each mutation can attribute itself to the * active flow/request. The host wires this getter to its own * AsyncLocalStorage (e.g. nest-instrumentation's * `currentLensmcpContext`). */ import type { MemoryContext, ResolvedMemoryOptions, MemoryEventSink } from './types.js'; type ContextGetter = () => MemoryContext | undefined; export declare function configureMemoryTracker(opts: { sessionId: string; sink: MemoryEventSink; leakItemThreshold?: number; staleGenerationBytesThreshold?: number; settleMs?: number; contextGetter?: ContextGetter; }): ResolvedMemoryOptions; export declare function activeMemoryOptions(): ResolvedMemoryOptions | undefined; export declare function currentMemoryContext(): MemoryContext | undefined; /** Test hook. */ export declare function resetMemoryTracker(): void; export {};