import type { Dispatch, SetStateAction } from 'react';
import type { ConversationMessage, ChatState, FollowUpSuggestion } from '../../types';
import type { StreamState } from './types';
export declare function createStreamState(): StreamState;
export declare function upsertMessage(setState: Dispatch<SetStateAction<ChatState>>, message: ConversationMessage, isTyping: boolean): void;
export declare function finalizeStreamMessages(setState: Dispatch<SetStateAction<ChatState>>, messageIds: Set<string>, sources: ConversationMessage["sources"], toolCallToActionId: Record<string, string>, suggestions?: FollowUpSuggestion[]): void;
export declare function finalizeToolMessage(streamState: StreamState, setState: Dispatch<SetStateAction<ChatState>>, toolCallId: string, toolName: string): void;
//# sourceMappingURL=stream-state.d.ts.map