import type { Compiler } from '@rspack/core'; type Diagnostic = { message?: unknown; module?: { resource?: unknown; } | null; loc?: unknown; }; export declare function dropRepeatedDiagnostics(diagnostics: Diagnostic[]): number; export declare class OneDiagnosticPerLocationPlugin { apply(compiler: Compiler): void; } export {};