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 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"; }; export declare const i18nString: (id: string, values?: Record | undefined) => Record; export type DuplicatedJavaScriptInsightModel = InsightModel; export declare function isDuplicatedJavaScript(model: InsightModel): model is DuplicatedJavaScriptInsightModel; export declare function generateInsight(parsedTrace: Handlers.Types.ParsedTrace, context: InsightSetContext): DuplicatedJavaScriptInsightModel; export declare function createOverlays(model: DuplicatedJavaScriptInsightModel): Types.Overlays.Overlay[];