import { WarningHandler } from 'rollup'; import { DiagnosticCategory } from './diagnostics'; export declare type CodeCategoryMap = { [code: string]: DiagnosticCategory | false; }; export default function rollupWarningHandler({ codeCategories, onDiagnostic, }: { codeCategories?: CodeCategoryMap | undefined; onDiagnostic?: import("./diagnostics").DiagnosticHandler | undefined; }): WarningHandler;