import type { Config } from '../../config/schema.js'; import type { MediaRef } from '../../media/types.js'; import type { SessionStore } from '../../session/index.js'; export type WebchatTtsResult = { type: 'tts_audio'; uri: string; mimeType: string; name: string; }; export type WebchatTtsDeps = { config: Config | undefined; sessionStore: SessionStore; getLastAssistantPlainText: (sessionKey: string) => string; log: { warn: (obj: Record, msg: string) => void; }; }; /** * Generate TTS for webchat when config allows; persist under `{stateDir}/media/tts/`. */ export declare function maybeEmitWebchatTts(deps: WebchatTtsDeps, sessionKey: string, hadInboundVoice: boolean): Promise; export declare function appendMediaToLastAssistant(sessionStore: SessionStore, sessionKey: string, ref: MediaRef): Promise;