import { G as GetCompletionContentPredictionFn, C as CompletionPrediction } from '../index-BibtdKi0.js'; interface UseContentPredictionOptions { debounceTime?: number; generateId?: (inputText: string, predictionText: string) => string; } interface UseContentPredictionResult { prediction: CompletionPrediction | null; setInputText: (text: string) => void; clearPrediction: () => void; } /** * A hook that manages content predictions for text input, providing debounced API calls * and prediction state management. It handles: * - Debouncing prediction requests to prevent excessive API calls * - Managing prediction state and cleanup * - Aborting in-flight requests when new ones are made * - Generating content-based IDs for predictions * - Caching predictions using a trie to prevent duplicate requests * and optimize for backspace operations * * @param getContentPredictionFn The function to fetch predictions * @param options Configuration options including debounce time, prediction function, and ID generator * @returns Object containing the current prediction, input text setter, and prediction clearer */ declare function useContentPrediction(getContentPredictionFn: GetCompletionContentPredictionFn, options: UseContentPredictionOptions): UseContentPredictionResult; export { type UseContentPredictionOptions, type UseContentPredictionResult, useContentPrediction };