/** * Incoming Message Processor * * Pre-processes incoming messages: language detection, transfer intent, * end-call detection, and STT artifact cleanup. */ import type { Channel, TalkerDependencies } from "../../types"; /** * Result from the incoming message pre-processor */ export interface IncomingResult { /** Whether the caller should be transferred to a human */ shouldTransfer: boolean; /** Whether the caller wants to end the conversation */ shouldEndCall: boolean; /** Detected language code (ISO 639-1) */ detectedLanguage: string; /** Cleaned and processed message */ processedMessage: string; } /** * Pre-process an incoming message */ export declare function processIncoming(deps: TalkerDependencies, phoneNumber: string, userMessage: string, channel?: Channel): Promise;