import { IDisposable } from "../../../../../base/common/lifecycle.js"; import { IChatInputOnboardingHostOptions } from "../widget/input/chatInputOnboarding.js"; import { SwitchMicrophone } from "./dictationOnboarding.js"; export declare const IDictationOnboardingService: import("../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IDictationOnboardingService { readonly _serviceBrand: undefined; readonly isVisible: boolean; /** * Register a container that can host the card (a chat input). The most * recently focused host wins when the card is shown. */ registerHost(options: IChatInputOnboardingHostOptions): IDisposable; /** * Show the card alongside the user's first dictation. Dictation starts * independently and is never gated on the card. */ showIfNeeded(): boolean; /** * Show the card again regardless of whether it has been seen, for the "Show * Introduction" command. Returns `false` when there is no visible chat input * to dock it to, so the caller can explain why nothing happened. */ show(): boolean; /** Refresh the visible card after dictation acquires microphone permission. */ refreshMicrophones(analyserNode?: AnalyserNode, switchMicrophone?: SwitchMicrophone): void; /** Reset first-run state so the introduction is shown next time. */ reset(): void; }