import { QueryEngine } from "../query/QueryEngine.js";
export async function collectHeadlessEvents(input) {
    const engine = new QueryEngine(input);
    const events = [];
    for await (const event of engine.submit(input.prompt))
        events.push(event);
    return events;
}
