import { Color } from "../../../../../base/common/color.js"; import { IDisposable } from "../../../../../base/common/lifecycle.js"; import { IObservable } from "../../../../../base/common/observable.js"; import { IAccessibilityService } from "../../../../../platform/accessibility/common/accessibility.service.js"; import { IColorTheme } from "../../../../../platform/theme/common/themeService.js"; import { IThemeService } from "../../../../../platform/theme/common/themeService.service.js"; import { ChatSpeechToTextState } from "./chatSpeechToTextService.js"; import { IChatSpeechToTextService } from "./chatSpeechToTextService.service.js"; export type DictationMicGlowPhase = "off" | "live" | "settling"; /** `off` while preparing too, so the glow doesn't compete with the download ring. */ export declare function getDictationMicGlowPhase(state: ChatSpeechToTextState, isPreparingModel: boolean): DictationMicGlowPhase; /** * Asymmetric, so the glow swells into speech but drifts back out of it. Tracking * the level symmetrically reads as a level meter rather than as ambient light. */ export declare function easeDictationMicLevel(current: number, target: number): number; /** Lifts quiet speech and clamps loud speech, so the glow breathes rather than flashes. */ export declare function shapeDictationMicLevel(level: number): number; /** * The color the mic glow paints with, tuned exactly as Voice Mode tunes its * listening rim — so an open microphone reads the same whichever feature opened * it. Themes that pin `chat.dictationActiveMicGlow` are tuned the same way, so * the treatment stays consistent even when the accent doesn't. */ export declare function resolveDictationMicAccent(theme: IColorTheme): Color | undefined; /** * Adds audio-reactive feedback to a dictation microphone while recording, so an * open mic is obvious at a glance rather than being conveyed only by the filled * mic glyph. * * When a theme service is available the microphone wears the same rim light * Voice Mode paints on the chat input, scaled down to the button — so an open * microphone reads the same whichever feature opened it. Without one it falls * back to a flat inner glow drawn as a pseudo-element on `target`. */ export declare function setupDictationMicGlow(target: HTMLElement, service: IChatSpeechToTextService, accessibilityService: IAccessibilityService, isActive?: IObservable, themeService?: IThemeService): IDisposable;