import type { RspackPluginFunction, RuleSetRule } from '@rspack/core'; import type { Config } from 'svgo'; import type { RuleInsertOptions } from './types.ts'; export interface PluginReactSVG extends RuleInsertOptions { /** Configuration for SVGO. */ svgoConfig?: Config; /** Rule extension/override. */ ruleOverride?: Omit; } export declare const SVGO_DEFAULTS: Config; /** * Rspack plugin that adds support of importing svg files as React-components. * * It uses `@svgr/webpack` so this package should be installed in your project. * The `@svgr/webpack` is optional peer dependency of this package, so you need to install it. * @param options Options. * @returns Plugin function. */ export declare function pluginReactSVG({ svgoConfig, ruleOverride, ruleInsert, }?: PluginReactSVG): RspackPluginFunction;