import type * as Rspack from '@rspack/core'; export type { Rspack }; export interface BundlerPluginInstance { [index: string]: any; apply: (compiler: any) => void; } export type RspackConfig = Omit & { plugins?: BundlerPluginInstance[]; }; /** T[] => T */ type GetElementType = T extends (infer U)[] ? U : never; export type RspackRule = GetElementType['rules']>>; export type RspackSourceMap = { version: number; sources: string[]; mappings: string; file?: string; sourceRoot?: string; sourcesContent?: string[]; names?: string[]; };