import { LanguageModelV4StreamPart, SharedV4Warning } from '@ai-sdk/provider';
import { ChatResponse } from 'ollama';
/**
 * Turns Ollama's chunk stream into AI SDK stream parts.
 *
 * Ollama can deliver the same content either in an intermediate chunk or
 * attached to the final `done` chunk, so both paths drive the same emitters
 * rather than repeating the text/reasoning/tool-call bookkeeping. Text and
 * reasoning are mutually exclusive: any text closes an open reasoning block.
 */
export declare function createChunkTransformer({ warnings, reasoningEnabled, includeRawChunks, }: {
    warnings: SharedV4Warning[];
    reasoningEnabled: boolean;
    includeRawChunks?: boolean;
}): TransformStream<ChatResponse, LanguageModelV4StreamPart>;
//# sourceMappingURL=chat-stream.d.ts.map