import { type FlatEvolveOptions } from '../../../types/types-options.js'; import type { WebpackPlugin } from '../../../types/types-webpack.js'; /** * Creates a list of webpack plugins for code checking. * * This function determines whether to enable the code checker plugin based on the provided serveMode and evolveOptions. * - When `serveMode` is true (development mode), the code checker plugin is disabled to improve development experience and build speed. * - The CodeCheckerWebpackPlugin is only enabled when `serveMode` is false and `evolveOptions.codeChecker` is set to a valid configuration. * * @example * IF code include `http://test.example.com/xxxx`, will throw error * * @param serveMode - Indicates whether the current mode is serve (development) mode. If true, the code checker plugin will be disabled. * @param evolveOptions - The complete Evolve configuration object, which may include codeChecker plugin options. * @returns WebpackPlugin[] Returns an array containing the CodeCheckerWebpackPlugin if enabled; otherwise, returns an empty array. */ export declare const createCodeCheckerWebpackPlugins: (serveMode: boolean, evolveOptions: FlatEvolveOptions) => WebpackPlugin[];