export { A as ActionableReportGenerator, c as createReportGenerator, g as generateActionableReport } from '../generator-DlmUgb_W.js'; import { P as PerformanceResult, e as DiagnosticItem, E as EnhancedLCPElement, L as LCPBreakdown, g as LCPRecommendation } from '../index-DuWc-W-w.js'; import { P as ProjectContext } from '../index-CFm-GmeT.js'; import { K as KeyOpportunity } from '../index-Cuv4JW0-.js'; import '../index-CBmIhSX_.js'; /** * @silverassist/performance-toolkit * * Diagnostics table generation similar to PageSpeed Insights. * * @module report/diagnostics * @author Miguel Colmenares * @license PolyForm-Noncommercial-1.0.0 */ /** * Generates enhanced diagnostics table from performance insights */ declare function generateDiagnosticsTable(result: PerformanceResult): DiagnosticItem[]; /** * @silverassist/performance-toolkit * * LCP analysis and framework-specific recommendations. * * @module report/lcp * @author Miguel Colmenares * @license PolyForm-Noncommercial-1.0.0 */ /** * Detects LCP element type from element info */ declare function detectLCPType(lcpElement: PerformanceResult["lcpElement"]): EnhancedLCPElement["type"]; /** * Detects loading mechanism from element snippet */ declare function detectLoadingMechanism(lcpElement: PerformanceResult["lcpElement"]): EnhancedLCPElement["loadingMechanism"]; /** * Generates LCP-specific recommendations based on type and breakdown */ declare function generateLCPRecommendations(type: EnhancedLCPElement["type"], breakdown: LCPBreakdown | undefined, lcpValue: number | undefined, context: ProjectContext | null): LCPRecommendation[]; /** * Generates enhanced LCP element information with recommendations */ declare function generateEnhancedLCP(result: PerformanceResult, context: ProjectContext | null): EnhancedLCPElement | undefined; /** * @silverassist/performance-toolkit * * Key opportunities generation with framework-specific guidance. * * @module report/opportunities * @author Miguel Colmenares * @license PolyForm-Noncommercial-1.0.0 */ /** * Generates ranked key opportunities with framework-specific guidance */ declare function generateKeyOpportunities(result: PerformanceResult, context: ProjectContext | null): KeyOpportunity[]; /** * Creates LCP optimization opportunity */ declare function createLCPOpportunity(result: PerformanceResult, context: ProjectContext | null): KeyOpportunity; /** * Creates JavaScript optimization opportunity */ declare function createJavaScriptOpportunity(result: PerformanceResult, context: ProjectContext | null, wastedBytes: number): KeyOpportunity; /** * Creates image optimization opportunity */ declare function createImageOpportunity(result: PerformanceResult, context: ProjectContext | null, wastedBytes: number): KeyOpportunity; /** * Creates third-party script opportunity */ declare function createThirdPartyOpportunity(result: PerformanceResult, context: ProjectContext | null, blockingTime: number): KeyOpportunity; /** * Creates render-blocking resources opportunity */ declare function createRenderBlockingOpportunity(wastedMs: number): KeyOpportunity; /** * Creates CLS improvement opportunity */ declare function createCLSOpportunity(result: PerformanceResult): KeyOpportunity; /** * @silverassist/performance-toolkit * * Report utility functions for formatting and severity calculations. * * @module report/utils * @author Miguel Colmenares * @license PolyForm-Noncommercial-1.0.0 */ /** * Formats bytes into human-readable string */ declare function formatBytes(bytes: number): string; /** * Truncates URL to specified length with ellipsis */ declare function truncateUrl(url: string, maxLength?: number): string; /** * Calculates a normalized score between 0-1 based on thresholds */ declare function calculateScore(value: number, goodThreshold: number, poorThreshold: number): number; /** * Determines severity level based on byte size */ declare function getSeverityByBytes(bytes: number, moderate?: number, serious?: number, critical?: number): DiagnosticItem["severity"]; /** * Determines severity level based on time in milliseconds */ declare function getSeverityByTime(ms: number, moderate?: number, serious?: number, critical?: number): DiagnosticItem["severity"]; export { calculateScore, createCLSOpportunity, createImageOpportunity, createJavaScriptOpportunity, createLCPOpportunity, createRenderBlockingOpportunity, createThirdPartyOpportunity, detectLCPType, detectLoadingMechanism, formatBytes, generateDiagnosticsTable, generateEnhancedLCP, generateKeyOpportunities, generateLCPRecommendations, getSeverityByBytes, getSeverityByTime, truncateUrl };