import type { KwaiConfig } from "../../../types"; /** * Using @svgr/webpack for handling svg files in react components * @see https://react-svgr.com/docs/webpack/ */ export declare const svgReactComponentRule: (config: KwaiConfig) => { test: RegExp; issuer: RegExp; use: ({ loader: string; options: { configFile: boolean; babelrc: boolean; compact: boolean; presets: (string | (string | { targets: any; useBuiltIns: string; corejs: string; modules: boolean; bugfixes: boolean; })[] | (string | { isTSX: boolean; allExtensions: boolean; })[])[]; plugins: (string | [string, unknown])[]; }; } | { loader: string; options: { babel: boolean; icon: boolean; }; })[]; }; /** * Using file-loader for handling svg files * @see https://webpack.js.org/guides/asset-modules/ */ export declare const svgRule: (config: KwaiConfig) => { test: RegExp; issuer: { not: RegExp[]; }; type: string; }; export declare const svgRules: (config: any) => ({ test: RegExp; issuer: RegExp; use: ({ loader: string; options: { configFile: boolean; babelrc: boolean; compact: boolean; presets: (string | (string | { targets: any; useBuiltIns: string; corejs: string; modules: boolean; bugfixes: boolean; })[] | (string | { isTSX: boolean; allExtensions: boolean; })[])[]; plugins: (string | [string, unknown])[]; }; } | { loader: string; options: { babel: boolean; icon: boolean; }; })[]; } | { test: RegExp; issuer: { not: RegExp[]; }; type: string; })[];