/** * Event-driven completion — demonstrates the unified `CompletionEvent` stream. * * `completion()` returns a `CompletionRun` with two primary surfaces: * * - `events` — an `AsyncIterable` of ordered, typed events * (`contentDelta`, `thinkingDelta`, `toolCall`, `toolError`, * `completionStats`, `completionDone`, `rawDelta`). * - `final` — a `Promise` that resolves once the stream * ends, providing aggregated `contentText`, `thinkingText`, * `toolCalls`, `stats`, and `raw.fullText`. * * Set `captureThinking: true` to attempt best-effort `` block parsing * into dedicated `thinkingDelta` events. `final.raw.fullText` keeps the exact * model output. */ export {}; //# sourceMappingURL=completion-events.d.ts.map