declare global { interface Performance { memory?: { jsHeapSizeLimit: number; totalJSHeapSize: number; usedJSHeapSize: number; }; } } /** * Memory class handles retrieving memory statistics for various environments. */ export default class Memory { /** * * @return {string} - memory usage result */ static checkMemoryUsage(): string; /** * Numeric used-heap sample for progress/telemetry events, unlike the * human-formatted strings above. Chrome-only in browsers * (performance.memory); undefined where the environment exposes nothing. * * @return {number | undefined} - used JS heap in MB, if available */ static usedHeapMb(): number | undefined; /** * * @return {string} - memory usage result for browser systems */ private static checkBrowserMemory; /** * * @return {string} - memory usage result for node systems */ private static checkNodeMemory; } //# sourceMappingURL=memory.d.ts.map