/**
 * Behavioural contract for `collect()` (ses_001-tool-stream-events phase 1A):
 *
 * - Drains a `StreamChunk` async iterable into a single
 *   `ChatCompletionResponse` matching the legacy `provider.chat()` shape.
 * - Concatenates `delta.content` in arrival order; null when no text
 *   chunks ever arrive.
 * - Buckets tool-call argument fragments by `index`; emits `toolCalls`
 *   sorted by index. `id` and `function.name` come from the first chunk
 *   that supplies them; `function.arguments` is the concatenation of all
 *   `arguments` fragments for that index.
 * - Latest-wins for `finishReason` and `usage`; defaults
 *   `finishReason: 'stop'` and zero usage if the provider omits them
 *   (defensive — see anthropics/anthropic-sdk-typescript#842).
 * - Throws if any chunk surfaces a `chunk.error`.
 *
 * Phase 2 swaps every internal `provider.chat()` call site for
 * `collect(provider.chatStream())`; the response shape parity guarded
 * here is what makes that swap safe.
 */
export {};
//# sourceMappingURL=collect.test.d.ts.map