/// <reference types="node" />
import { Compiler } from 'webpack';
interface Option {
    regexp: RegExp;
    newContent?: string;
}
declare class HotUpdatePlugin {
    options: Option;
    constructor();
    apply(compiler: Compiler): void;
    replaceFunctionBody(source: string | Buffer, options: Option): string;
    findMatchingBrace(source: string, index: number): number;
}
export default HotUpdatePlugin;
