lighthouse
Version:
Automated auditing, performance metrics, and best practices for the web.
23 lines • 1.51 kB
TypeScript
/**
* @param {LH.Artifacts} artifacts
* @param {LH.Audit.Context} context
* @param {T} insightName
* @param {(insight: import('@paulirish/trace_engine/models/trace/insights/types.js').InsightModels[T]) => LH.Audit.Details|undefined} createDetails
* @template {keyof import('@paulirish/trace_engine/models/trace/insights/types.js').InsightModelsType} T
* @return {Promise<LH.Audit.Product>}
*/
export function adaptInsightToAuditProduct<T extends keyof import("@paulirish/trace_engine/models/trace/insights/types.js").InsightModelsType>(artifacts: LH.Artifacts, context: LH.Audit.Context, insightName: T, createDetails: (insight: import("@paulirish/trace_engine/models/trace/insights/types.js").InsightModels[T]) => LH.Audit.Details | undefined): Promise<LH.Audit.Product>;
/**
* @param {LH.Artifacts.TraceElement[]} traceElements
* @param {number|null|undefined} nodeId
* @return {LH.Audit.Details.NodeValue|undefined}
*/
export function makeNodeItemForNodeId(traceElements: LH.Artifacts.TraceElement[], nodeId: number | null | undefined): LH.Audit.Details.NodeValue | undefined;
/**
* @param {LH.Artifacts.TraceElement[]} traceElements
* @param {number|null|undefined} nodeId
* @param {LH.IcuMessage|string} label
* @return {LH.Audit.Details.Table|undefined}
*/
export function maybeMakeNodeElementTable(traceElements: LH.Artifacts.TraceElement[], nodeId: number | null | undefined, label: LH.IcuMessage | string): LH.Audit.Details.Table | undefined;
//# sourceMappingURL=insight-audit.d.ts.map