import { Color } from "../../../../../base/common/color.js"; import { IDisposable } from "../../../../../base/common/lifecycle.js"; import { GlowThemeKind, IVoiceGlowColors, VoiceRimMood } from "./voiceGlow.js"; export type { GlowThemeKind }; export interface IVoiceGlowController extends IDisposable { /** Show/keep the connected glow, driving intensity from `level` ([0,1]). */ render(level: number, reducedMotion: boolean): void; /** Fade the glow out (not-owner / disconnected). */ clear(): void; /** Re-apply the current state after a color-theme change. */ refreshTheme(): void; } /** * Create a voice glow controller bound to `target` (the input box). `themeKind` * lets the caller supply the active light/dark theme, and `colors` the resolved * theme accents; both are re-read on {@link IVoiceGlowController.refreshTheme}. */ export declare function createVoiceGlowController(target: HTMLElement, themeKind?: () => GlowThemeKind, colors?: () => IVoiceGlowColors): IVoiceGlowController; /** A standalone rim light mounted over a single element. */ export interface IVoiceRimLight extends IDisposable { /** Advance the rim from the smoothed audio `level` ([0,1]). */ drive(level: number): void; /** Pin to a representative still frame (reduced motion). */ driveStatic(level: number): void; /** Re-mount with a freshly resolved accent / theme. */ refresh(accent: Color, theme: GlowThemeKind, background?: Color): void; } /** * Mount the rim over `target` as an always-on light, for hosts that light a * single element rather than cross-fading between voice states — the dictation * microphone, which is either open or closed. * * The rim lives in its own absolutely-positioned slot, so hosts that rebuild * their button contents don't tear it out. */ export declare function createVoiceRimLight(target: HTMLElement, accent: Color, theme: GlowThemeKind, mood?: VoiceRimMood, background?: Color): IVoiceRimLight;