export declare function validatePlugins(rootDir: string, plugins: unknown[], bundler: 'rspack' | 'webpack'): Promise;