import type { Compiler } from '@rspack/core'; import { type AssetCategory, type BudgetCategory } from './categorize.js'; declare const ON_EXCEED_VALUES: readonly ['warn', 'error']; type PerfBudgetsOnExceed = (typeof ON_EXCEED_VALUES)[number]; export type PerfBudgetsConfig = Partial> & { ignore?: string[]; onExceed?: PerfBudgetsOnExceed; }; interface PerfBudgetsPluginOptions { browser?: string; enabled?: boolean; budgets?: PerfBudgetsConfig; } export declare function ignorePatternToRegExp(pattern: string): RegExp; interface ResolvedPerfBudgets { budgets: Record; ignore: string[]; onExceed: PerfBudgetsOnExceed; unknownKeys: string[]; } export declare function resolvePerfBudgets(config: unknown, configPath?: string): ResolvedPerfBudgets; export declare function resetPerfBudgetNotices(): void; export declare class PerfBudgetsPlugin { static readonly name = "plugin-perf-budgets"; private readonly options; constructor(options?: PerfBudgetsPluginOptions); private warnDevBudgets; apply(compiler: Compiler): void; } export { BUDGET_BYTES, categorizeAsset } from './categorize.js'; export { collectAssetReferrers } from './referrers.js';