import { a as AiContextParams } from './ai-context-2768aadc.js'; import { Message } from '@vn-sdk/runtime-client-gql'; import React$1 from 'react'; import { AiChatSuggestionConfiguration } from './types/chat-suggestion-configuration.js'; /** * Suggestions utility functions for VN SDK * * This module handles the generation of chat suggestions with optimized error handling * and streaming validation to prevent infinite retry loops and console spam. */ interface SuggestionItem { title: string; message: string; partial?: boolean; className?: string; } declare const reloadSuggestions: (context: AiContextParams & AiMessagesContextParams, chatSuggestionConfiguration: { [key: string]: AiChatSuggestionConfiguration; }, setCurrentSuggestions: (suggestions: SuggestionItem[]) => void, abortControllerRef: React.MutableRefObject) => Promise; /** * An internal context to separate the messages state (which is constantly changing) from the rest of VN SDK context */ interface AiMessagesContextParams { messages: Message[]; setMessages: React$1.Dispatch>; suggestions: SuggestionItem[]; setSuggestions: React$1.Dispatch>; } declare const AiMessagesContext: React$1.Context; declare function useAiMessagesContext(): AiMessagesContextParams; export { AiMessagesContext as A, SuggestionItem as S, AiMessagesContextParams as a, reloadSuggestions as r, useAiMessagesContext as u };