import type { ProviderRunCallbacks } from '../../../lib/providers/types';
import type { NormalizedToolCall, OllamaStreamEvent } from './types';
interface StreamState {
    finalOutput: string;
    streamFinished: boolean;
    messageCreated: boolean;
    rawEvents: OllamaStreamEvent[];
}
export declare const extractToolCalls: (event: OllamaStreamEvent, collector: Map<string, NormalizedToolCall>) => void;
export declare const handleStreamEvent: (event: OllamaStreamEvent, state: StreamState, callbacks: ProviderRunCallbacks, toolCollector: Map<string, NormalizedToolCall>) => Promise<void>;
export declare const processBufferedLines: (buffer: string, state: StreamState, callbacks: ProviderRunCallbacks, toolCollector: Map<string, NormalizedToolCall>) => Promise<string>;
export declare const resolveToolCallPayload: (call: NormalizedToolCall) => unknown;
export {};
//# sourceMappingURL=streaming.d.ts.map