import type { AssetsManager } from '../assets-manager.js';
export interface BundlerStats {
    hasErrors(): boolean;
    toString(options: {
        chunks: boolean;
        colors: boolean;
        modules: boolean;
        assets: boolean;
    }): string;
}
export interface BundlerCallbackCompletion {
    resolve: () => void;
    reject: (err: unknown) => void;
}
export interface BundlerAfterCallbackOptions {
    bundlerName: string;
    onSuccess: (() => void) | undefined;
    assetsManager: AssetsManager;
    watchMode: boolean;
    watch: boolean | undefined;
    onComplete?: BundlerCallbackCompletion;
}
/**
 * Creates the completion callback shared by `RspackCompiler` and
 * `WebpackCompiler` for both `compiler.run()` and `compiler.watch()`.
 */
export declare function createBundlerAfterCallback({ bundlerName, onSuccess, assetsManager, watchMode, watch, onComplete, }: BundlerAfterCallbackOptions): (err: Error | null | undefined, stats: BundlerStats | undefined) => undefined;
