UNPKG

@stacksjs/stx

Version:

A performant UI Framework. Powered by Bun.

39 lines 1.23 kB
import type { BundleStats } from './collector'; /** * Generate a report from bundle statistics */ export declare function generateReport(stats: BundleStats, options: ReportOptions): string; /** * Analyze bundle for issues and recommendations */ export declare function analyzeBundle(stats: BundleStats, options: ReportOptions): AnalysisResult; /** * Get recommendations for a specific module */ export declare function getModuleRecommendation(modulePath: string): Recommendation | null; // ============================================================================ // Types // ============================================================================ export declare interface ReportOptions { format: 'text' | 'json' | 'markdown' threshold?: number recommendations?: boolean topModules?: number showGzip?: boolean } export declare interface AnalysisResult { score: number issues: AnalysisIssue[] recommendations: Recommendation[] } export declare interface AnalysisIssue { severity: 'error' | 'warning' | 'info' message: string details?: string } export declare interface Recommendation { title: string description: string impact: 'high' | 'medium' | 'low' effort: 'low' | 'medium' | 'high' }