import type { Externals } from '@rspack/core';
import { type PackageJson } from '../helpers/packageJson.js';
import type { AutoExternal, RsbuildPlugin } from '../types/index.js';
export declare const composeAutoExternalRules: (options: {
    autoExternal?: AutoExternal;
    pkgJson?: PackageJson;
    userExternals?: Externals;
}) => RegExp[] | undefined;
export declare function pluginExternals(): RsbuildPlugin;
