import { ICodeEditor } from "../../../../../editor/browser/editorBrowser.js"; import { ILogService } from "../../../../../platform/log/common/log.service.js"; import { ChatDictationSurface } from "./chatSpeechToTextService.js"; import { IChatSpeechToTextService } from "./chatSpeechToTextService.service.js"; /** Fires when the active or finalizing dictation editor changes. */ export declare const onDidChangeDictationEditor: import("../../../../../base/common/event.js").Event; /** True while a dictation is in progress. */ export declare function isDictating(): boolean; /** The editor currently being dictated into, if any (used to scope the glow). */ export declare function activeDictationEditor(): ICodeEditor | undefined; /** Whether `editor` owns the active or finalizing dictation session. */ export declare function isDictationActiveForEditor(editor: ICodeEditor): boolean; /** Start dictating into `editor`, rendering the transcript live. */ export declare function startDictation(service: IChatSpeechToTextService, editor: ICodeEditor, window: Window & typeof globalThis, logService: ILogService, surface?: ChatDictationSurface): Promise; /** Stop the active dictation and apply the final transcript. */ export declare function stopDictation(): Promise; /** Stop dictation only when it is targeting `editor`. */ export declare function stopDictationForEditor(editor: ICodeEditor): Promise; /** Abort the active dictation, discarding whatever was recorded. */ export declare function cancelDictation(): void; /** * Called by an input's submit path to measure any pending dictation accuracy * against the text actually being sent, before the input is cleared. This is * the precise signal; without it a tracker falls back to the clear/teardown * heuristic and reports `submitted: false`. */ export declare function notifyDictationSubmitted(editor: ICodeEditor): void;