/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ import { StatsCompilation } from 'webpack'; import { Budget } from '../browser/schema'; import { ProcessBundleResult } from '../utils/process-bundle'; interface Threshold { limit: number; type: ThresholdType; severity: ThresholdSeverity; } declare enum ThresholdType { Max = "maximum", Min = "minimum" } export declare enum ThresholdSeverity { Warning = "warning", Error = "error" } export declare function calculateThresholds(budget: Budget): IterableIterator; export declare function checkBudgets(budgets: Budget[], webpackStats: StatsCompilation, processResults: ProcessBundleResult[]): IterableIterator<{ severity: ThresholdSeverity; message: string; }>; export declare function checkThresholds(thresholds: IterableIterator, size: number, label?: string): IterableIterator<{ severity: ThresholdSeverity; message: string; }>; export {};