UNPKG

pagespeed-quest

Version:

A framework for efficient web front-end speed improvement

36 lines (35 loc) 958 B
import { Resource } from './inventory.js'; import { DependencyInterface } from './types.js'; /** * Lighthouse audit result structure */ export interface LighthouseAudit { id: string; title: string; score: number | null; numericValue?: number; displayValue?: string; } /** * Lighthouse JSON report structure (partial) */ export interface LighthouseReport { categories: { performance: { id: string; title: string; score: number | null; }; }; audits: Record<string, LighthouseAudit>; } export interface GenerateLighthouseSummaryInput { jsonPath: string; outputPath: string; inventoryDir?: string; resources?: Resource[]; } /** * Generates a Markdown summary from a Lighthouse JSON report */ export declare function generateLighthouseSummary(opts: GenerateLighthouseSummaryInput, dependency: Pick<DependencyInterface, 'logger' | 'mkdirp'>): Promise<void>;