import * as Extras from '../extras/extras.js'; import type * as Handlers from '../handlers/handlers.js'; import type * as Types from '../types/types.js'; import { type InsightModel, type InsightSetContext } from './types.js'; export declare const UIStrings: { /** * @description Title of an insight that identifies multiple copies of the same JavaScript sources, and recommends removing the duplication. */ readonly title: "Duplicated JavaScript"; /** * @description Description of an insight that identifies multiple copies of the same JavaScript sources, and recommends removing the duplication. */ readonly description: "Remove large, [duplicate JavaScript modules](https://developer.chrome.com/docs/performance/insights/duplicated-javascript) from bundles to reduce unnecessary bytes consumed by network activity."; /** Label for a column in a data table; entries will be the locations of JavaScript or CSS code, e.g. the name of a Javascript package or module. */ readonly columnSource: "Source"; /** Label for a column in a data table; entries will be the number of wasted bytes due to duplication of a web resource. */ readonly columnDuplicatedBytes: "Duplicated bytes"; /** * @description Message shown when no duplicated JavaScript is found. */ readonly noDuplicatedJavaScript: "No duplicated JavaScript found"; }; export declare const i18nString: any; export type DuplicatedJavaScriptInsightModel = InsightModel; export declare function isDuplicatedJavaScriptInsight(model: InsightModel): model is DuplicatedJavaScriptInsightModel; export declare function generateInsight(data: Handlers.Types.HandlerData, context: InsightSetContext): DuplicatedJavaScriptInsightModel; export declare function createOverlays(model: DuplicatedJavaScriptInsightModel): Types.Overlays.Overlay[];