import { EventEmitter } from 'events'; import type { Context } from '../context.js'; export interface MemoryOptions { maxHeapSize?: number; gcThreshold?: number; checkInterval?: number; enableGC?: boolean; } export declare class MemoryMonitor extends EventEmitter { private options; private intervalId; private stats; constructor(options?: MemoryOptions); start(): void; stop(): void; private checkMemory; private detectMemoryLeak; private calculateTrend; getStats(): { current: NodeJS.MemoryUsage; history: { heapUsed: number[]; heapTotal: number[]; external: number[]; rss: number[]; }; options: Required; }; } export declare function memoryPlugin(options?: MemoryOptions): (ctx: Context, next: () => Promise) => Promise; //# sourceMappingURL=memory.d.ts.map