import type { BuildWatcherConfig } from '../types/server.types';
/**
 * BuildWatcher manages esbuild watch context and emits rebuild events.
 */
export declare class BuildWatcher {
    private config;
    private loggerInstance;
    private ctx;
    private isWatching;
    private rebuildStartTime;
    constructor(config: BuildWatcherConfig);
    start(): Promise<void>;
    stop(): Promise<void>;
    isActive(): boolean;
    private processResult;
    private formatError;
}
