import type { Configuration } from 'webpack';
import type { NxWebpackExecutionContext, WithWebOptions } from '@nx/webpack';
export interface WithReactOptions extends WithWebOptions {
}
/**
 * @deprecated Will be removed in Nx v24. Use `NxReactWebpackPlugin` from
 * `@nx/react/webpack-plugin` in a standard webpack config and run
 * `nx g @nx/webpack:convert-to-inferred`. See
 * https://nx.dev/docs/guides/tasks--caching/convert-to-inferred for details.
 * @param {WithReactOptions} pluginOptions
 * @returns {NxWebpackPlugin}
 */
export declare function withReact(pluginOptions?: WithReactOptions): (config: Configuration, context: NxWebpackExecutionContext) => Configuration;
