import Webpack from 'webpack'; import WebpackDevServer from 'webpack-dev-server'; import { DazzleContext } from '@elzzad/dazzle/types'; export declare type WebpackConfig = Webpack.Configuration; export declare type WebpackDevServerConfig = WebpackDevServer.Configuration; declare module '@elzzad/dazzle/types' { interface DazzlePaths { appSrc: string; appBuild: string; appBuildPublic: string; appServerIndex: string; appServerPath: string; appClientPath: string; } interface ConfigurationHooks { modifyWebpackContext?: NoPluginContextConfigHook; modifyWebpackConfig?: ConfigHook; modifyDevServerConfig?: NoPluginContextConfigHook; } interface DazzleContext { devMatrixName: string; buildMatrix: Record; } interface DazzlePluginOptions { webpack5: Readonly; } } export interface WebpackPluginContext { port: number; } export interface WebpackBuildContext { matrixName: string; buildTargets: string[]; buildTarget: string; buildOptions?: BuildOptions; buildName: string; isDev: boolean; isProd: boolean; isClient: boolean; isServer: boolean; outputEsm: boolean; definePluginOptions: DefinePluginDefines; } export declare type BuildOptions = Record; export interface BuildConfig { targets: string[]; depends?: Record; buildOptions?: BuildOptions; } export interface Webpack5PluginOptions { devMatrixName: string; buildMatrix: Record; outputEsm: boolean | { server: boolean; client: boolean; }; disableWebpackBar: boolean | string; devServerOptions: DevServerOptions; } export interface DevServerOptions { port: number; host: string; } export interface DefinePluginDefines { 'process.env.NODE_ENV': string; } export declare type DazzleContextWithPossibleBrowsersList = { browserslistEnvs?: string; } & DazzleContext; //# sourceMappingURL=types.d.ts.map