import type { TsConfigJson } from 'type-fest'; import { RuleSetCondition, RuleSetRule } from 'webpack'; interface WorkerUseParams { useWebWorker: true; chunkPath: string; publicPath: string; } interface WorkerUnuseParams { useWebWorker: false; } export interface ESBuildLoaderOptions { target: 'es2016' | 'es2017' | 'es2018' | 'es2019' | 'es2020' | 'esnext' | `chrome${number}` | `firefox${number}` | `safari${number}` | `edge${number}` | `node${number}`; loader?: 'js' | 'jsx' | 'ts' | 'tsx'; tsconfigRaw: TsConfigJson; } declare type Params = (WorkerUseParams | WorkerUnuseParams) & { include: RuleSetCondition; esbuildLoaderOptions: ESBuildLoaderOptions; }; export declare function getWebpackScriptLoaders(params: Params): RuleSetRule[]; export {};