/** * Class decorator to monitor and warn about potential memory leaks. * Works in both Node.js and browser environments. * * @param checkIntervalMs - Interval in milliseconds to check memory usage. * @param thresholdPercent - Percentage increase in memory usage to trigger warning. * @param logger - Logging function to use for warnings. * @param enableManualGC - Enables manual garbage collection in Node.js (requires --expose-gc flag). */ export declare function WarnMemoryLeak(checkIntervalMs?: number, thresholdPercent?: number, logger?: (msg: string) => void, enableManualGC?: boolean): (target: any) => { new (...args: any[]): { [x: string]: any; intervalId: NodeJS.Timeout | number | null; initialMemoryUsage: number | undefined; className: string; setupMemoryLeakCheck(): void; cleanup(): void; }; [x: string]: any; };