import { type ReplyDeliveryOptions } from './preferred-voice.js'; import type { ChatReply } from './protocol.js'; import type { PersonaDeliveryResult } from './persona-delivery.js'; import type { ToolRunContext } from '@deepseek-ai/dsh-tools'; import { type WorkExpressionResult } from './work-expression.js'; import type { Agent } from '@deepseek-ai/dsh-agent'; import type { SessionEvent } from '@deepseek-ai/dsh-session'; /** Successful speech after the latest input permits an explicit, silent end. */ export declare function hasCurrentSpeech(events: readonly SessionEvent[]): boolean; /** Per active channel turn. Serial sends, sticky unknown failures, no background continuation. */ export declare class LiveSpeech { private events; private send; private active; private pending; private failed; private count; private sent; constructor(events: () => readonly SessionEvent[], send: (text: string) => Promise, active: () => boolean); say(raw: string, signal: AbortSignal, expanded?: boolean, task?: boolean, validate?: () => void, sendOverride?: (text: string) => Promise): Promise; } export declare function installLiveSpeech(agent: Agent, send: (text: string) => Promise, route: () => string | undefined, chatEnabled?: () => boolean, short?: () => boolean, _compose?: (selection: unknown, exec: ToolRunContext, beforeTools: boolean) => Promise, voice?: (text: string, exec: ToolRunContext, beforeTools: boolean, preserveText: boolean, inlineDetails: boolean) => Promise, deliverVoice?: (text: string, exec: ToolRunContext, options: ReplyDeliveryOptions) => Promise): () => void; //# sourceMappingURL=live-speech.d.ts.map