import type { RuleSetRule } from '@rspack/core'; import type { DevOptions } from '../types.js'; import { type PostCssRuleReader } from './css-tools/postcss.js'; export interface StyleLoaderOptions { mode: DevOptions['mode']; loader?: string; loaderOptions?: Record; postCss?: PostCssRuleReader; warn?: (message: string) => void; afterPreprocessor?: { loader: string; options?: Record; }; } export declare function usesStyleTools(projectPath: string): boolean; export declare function commonStyleLoaders(projectPath: string, opts: StyleLoaderOptions): Promise;