import type { LoaderDefinitionFunction, LoaderContext as _LoaderContext } from 'webpack'; export type WebpackLoaderParams = Parameters>; export type LoaderContext = _LoaderContext & { _compiler: NonNullable<_LoaderContext['_compiler']>; _compilation: NonNullable<_LoaderContext['_compilation']>; }; declare function loader(this: LoaderContext<{ compiler: 'swc' | 'babel'; virtualLoader: boolean; preCssOutputPath: string; }>, sourceCode: WebpackLoaderParams[0], inputSourceMap: WebpackLoaderParams[1], additionalData: WebpackLoaderParams[2]): void; export default loader;