1import { ConfigPlugin, StaticPlugin } from '../Plugin.types';
2/**
3 * Resolves static module plugin and potentially falls back on a provided plugin if the module cannot be resolved
4 *
5 * @param config
6 * @param fallback Plugin with `_resolverError` explaining why the module couldn't be used
7 * @param projectRoot optional project root, fallback to _internal.projectRoot. Used for testing.
8 * @param _isLegacyPlugin Used to suppress errors thrown by plugins that are applied automatically
9 */
10export declare const withStaticPlugin: ConfigPlugin<{
11    plugin: StaticPlugin | ConfigPlugin | string;
12    fallback?: ConfigPlugin<{
13        _resolverError: Error;
14    } & any>;
15    projectRoot?: string;
16    _isLegacyPlugin?: boolean;
17}>;
18