// Global question queue - allows the ask_question tool to present
// interactive questions to the user via the UI.
import { createGlobalHandlerSlot } from '../utils/global-handler-slot.js';
const questionSlot = createGlobalHandlerSlot(() => 'Error: Question handler not initialized. The UI is not ready to accept questions.');
/** Called once from App.tsx to wire up the UI handler. */
export const setGlobalQuestionHandler = questionSlot.set;
/**
 * Called from the ask_question tool's execute function.
 * Returns a Promise that resolves with the user's answer string.
 */
export const signalQuestion = questionSlot.signal;
//# sourceMappingURL=question-queue.js.map