export { UnusedJavascriptSummaryComputed as UnusedJavascriptSummary }; export type WasteData = { unusedByIndex: Uint8Array; unusedLength: number; contentLength: number; }; export type ComputeInput = { scriptId: string; scriptCoverage: Omit; bundle: LH.Artifacts.Bundle | null; }; export type Summary = { scriptId: string; wastedBytes: number; totalBytes: number; wastedPercent?: number | undefined; /** * Keyed by file name. Includes (unmapped) key too. */ sourcesWastedBytes?: Record | undefined; }; declare const UnusedJavascriptSummaryComputed: typeof UnusedJavascriptSummary & { request: (dependencies: ComputeInput, context: LH.Artifacts.ComputedContext) => Promise; }; /** * @typedef WasteData * @property {Uint8Array} unusedByIndex * @property {number} unusedLength * @property {number} contentLength */ /** * @typedef ComputeInput * @property {string} scriptId * @property {Omit} scriptCoverage * @property {LH.Artifacts.Bundle|null} bundle */ /** * @typedef Summary * @property {string} scriptId * @property {number} wastedBytes * @property {number} totalBytes * @property {number} wastedBytes * @property {number=} wastedPercent * @property {Record=} sourcesWastedBytes Keyed by file name. Includes (unmapped) key too. */ declare class UnusedJavascriptSummary { /** * @param {Omit} scriptCoverage * @return {WasteData} */ static computeWaste(scriptCoverage: Omit): WasteData; /** * @param {string} scriptId * @param {WasteData} wasteData * @return {Summary} */ static createItem(scriptId: string, wasteData: WasteData): Summary; /** * @param {WasteData} wasteData * @param {LH.Artifacts.Bundle} bundle */ static createSourceWastedBytes(wasteData: WasteData, bundle: LH.Artifacts.Bundle): Record | undefined; /** * @param {ComputeInput} data * @return {Promise} */ static compute_(data: ComputeInput): Promise; } //# sourceMappingURL=unused-javascript-summary.d.ts.map