UNPKG

ai-debug-local-mcp

Version:

🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh

63 lines • 1.9 kB
import { Page } from 'playwright'; export interface NextJSBundleAnalysis { firstLoadJS: Record<string, number>; totalBundleSize: number; unusedDependencies: string[]; codeSplitting: { effectiveness: number; sharedChunks: string[]; routeSpecificChunks: Record<string, string[]>; }; } export interface FontLoadingAnalysis { strategy: 'auto' | 'block' | 'swap' | 'fallback' | 'optional'; fontsUsingNextFont: number; fontsNotOptimized: string[]; variableFonts: string[]; cls: number; loadTime: number; } /** * NextJS Performance & Optimization Module * * Handles bundle analysis, font optimization, and performance monitoring. * This module provides insights for optimizing Next.js application performance. */ export declare class NextJSPerformanceOptimization { private page?; private bundleAnalysis; attachToPage(page: Page): Promise<void>; getBundleAnalysis(): Promise<NextJSBundleAnalysis>; getFontLoadingAnalysis(): Promise<FontLoadingAnalysis>; getPerformanceScore(): Promise<{ overall: number; fcp: number; lcp: number; cls: number; fid: number; ttfb: number; score: number; metrics: any; recommendations: string[]; breakdown: { nextjsOptimizations: number; bundleSize: number; caching: number; rendering: number; }; }>; analyzeBundle(): Promise<{ totalSize: number; gzippedSize: number; chunks: Array<{ name: string; size: number; type: 'initial' | 'async' | 'runtime'; }>; recommendations: string[]; }>; private setupBundleAnalysis; private setupFontLoadingAnalysis; private setupPerformanceMonitoring; } //# sourceMappingURL=nextjs-performance-optimization.d.ts.map