import type { MachinatChannel } from '../types'; export declare type RecognitionData = { defaultLanguage: Language; languages: Language[]; intents: { [Name in Intent]: { trainingPhrases: { [Code in Language]: string[]; }; }; }; }; export declare type DetectIntentResult, Payload> = Recognition extends RecognitionData ? { type: undefined | Intent; language: Language; confidence: number; payload: Payload; } : never; export declare type DetectTextOptions = { language?: string; }; /** * @category Base */ export interface IntentRecognizer = RecognitionData, Payload = unknown> { detectText(channel: MachinatChannel, text: string, options?: DetectTextOptions): Promise>; } declare const IntentRecognizerI: import("../service").SingularServiceInterface, unknown>>; declare type IntentRecognizerI = RecognitionData, Payload = unknown> = IntentRecognizer; export default IntentRecognizerI;