export class DevTUI {
    options;
    app = null;
    updateStatusFn = null;
    constructor(options) {
        this.options = options;
    }
    async start() {
        // Use dynamic import to load the TSX implementation at runtime
        const { runTUI } = await import("./tui-interface-impl.js");
        const { app, updateStatus } = await runTUI(this.options);
        this.app = app;
        this.updateStatusFn = updateStatus;
    }
    async updateStatus(status) {
        if (this.updateStatusFn) {
            this.updateStatusFn(status);
        }
    }
    async shutdown() {
        if (this.app) {
            this.app.unmount();
        }
    }
}
//# sourceMappingURL=tui-interface.js.map