import webpack from 'webpack'; import { CompilationAssets } from './types'; export interface TransformOpt { assetName: string; source: string | Buffer; assets: CompilationAssets; } export interface PluginOpt { test?: RegExp; transform: (opt: TransformOpt) => string; } export declare class TransformBeforeCompressionPlugin { private readonly opt; static readonly pluginName = "TransformBeforeCompression"; constructor(opt: PluginOpt); apply(compiler: webpack.Compiler): void; }