import { type ActivityWatchdogDiagnostic } from "./activity-watchdog.ts";
import { type InteractiveEngineMessage } from "./protocol.ts";
export declare class InteractiveEngineMonitor {
    private readonly watchdog;
    private readonly readiness;
    private resolveReady;
    private readonly bound;
    private resolveBound;
    private rejectBound;
    private readonly onMessage;
    constructor(onDiagnostic: (diagnostic: ActivityWatchdogDiagnostic) => void, onMessage: (message: InteractiveEngineMessage) => void);
    stop(): void;
    fail(error: Error): void;
    waitUntilReady(timeoutMs?: number): Promise<void>;
    waitUntilBound(): Promise<void>;
    handleLine(line: string): boolean;
}
//# sourceMappingURL=engine-monitor.d.ts.map