import type * as TWebpack from 'webpack'; import type { IHeftTaskSession, HeftConfiguration } from '@rushstack/heft'; import type { IWebpackPluginOptions } from './Webpack5Plugin'; import { type IWebpackConfiguration, type IWebpackConfigurationFnEnvironment, type IWebpackPluginAccessorHooks } from './shared'; type IWebpackConfigJsExport = TWebpack.Configuration | TWebpack.Configuration[] | Promise | Promise | ((env: IWebpackConfigurationFnEnvironment) => TWebpack.Configuration | TWebpack.Configuration[]) | ((env: IWebpackConfigurationFnEnvironment) => Promise); type IWebpackConfigJs = IWebpackConfigJsExport | { default: IWebpackConfigJsExport; }; /** * @internal */ export interface ILoadWebpackConfigurationOptions { taskSession: IHeftTaskSession; heftConfiguration: HeftConfiguration; serveMode: boolean; loadWebpackAsyncFn: () => Promise; hooks: Pick; _tryLoadConfigFileAsync?: typeof tryLoadWebpackConfigurationFileAsync; } /** * @internal */ export declare function tryLoadWebpackConfigurationAsync(options: ILoadWebpackConfigurationOptions, pluginOptions: IWebpackPluginOptions): Promise; /** * @internal */ export declare function tryLoadWebpackConfigurationFileAsync(options: ILoadWebpackConfigurationOptions, pluginOptions: IWebpackPluginOptions): Promise; /** * @internal */ export declare function _tryLoadWebpackConfigurationFileInnerAsync(configurationPath: string): Promise; export {}; //# sourceMappingURL=WebpackConfigurationLoader.d.ts.map