import type { AssetSize, BundleSizeReportEntry, ThresholdValue } from '../types.mjs'; export type DiffByMetric = { delta: number; percent: string; }; export type DiffForEntry = { empty: boolean; exceedsThreshold: boolean; minified: DiffByMetric; gzip: DiffByMetric; }; /** * Per-asset-type diff. Mirrors `DiffForEntry`'s `minified`/`gzip` shape * but carries no `exceedsThreshold` — the threshold gates on totals only, * never on per-type deltas. */ export type AssetDiff = { minified: DiffByMetric; gzip: DiffByMetric; }; type DiffEntry = Pick; export declare const EMPTY_DIFF: DiffForEntry; export declare function calculateDiff(params: { localEntry: DiffEntry; remoteEntry: DiffEntry; threshold: ThresholdValue; }): DiffForEntry; /** * `true` when an asset type's diff has a non-zero minified or gzip delta. * The single shared predicate used by reporters and the changed/unchanged * splitter so they all agree on what "moved" means. */ export declare function hasMovedAssetDelta(diff: AssetDiff): boolean; /** * Per-asset-type diff. Treats a missing side (asset only present in local * OR remote) as `{ minifiedSize: 0, gzippedSize: 0 }` — a brand-new type * surfaces as a positive delta, a removed type as a negative delta. */ export declare function calculateAssetDiff(local: AssetSize | undefined, remote: AssetSize | undefined): AssetDiff; export {}; //# sourceMappingURL=calculateDiff.d.mts.map