/** Default cap on queued OpenCode events per loop/swarm runner (prevents unbounded memory growth). */ export declare const DEFAULT_MAX_EVENT_QUEUE_SIZE = 10000; /** * Serializes async event processing. Concurrent `push` callers each await full drain * completion (no lost wakeups). Replaces recursive `drainQueue` patterns that could * return early while another drain was in flight. */ export declare function createAsyncEventQueue(processor: (event: unknown) => Promise, maxSize?: number): { push: (event: unknown) => Promise; readonly size: number; }; //# sourceMappingURL=async-event-queue.d.ts.map