import { IObservable } from "../../../../../base/common/observable.js"; export declare const IChatMicrosoftSignInProbeService: import("../../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; /** * Decides whether sign-in surfaces offer "Continue with Microsoft", according to * {@link ChatMicrosoftAuthenticationEnabledSettingId}. In {@link ChatMicrosoftAuthenticationMode.Auto}, * the option is offered once {@link probeMicrosoftSignIn} finds a linked account for the GitHub * host sign-in would use. Probing starts in the background as soon as this service exists, whether * or not the user is signed in, so that no surface has to wait for it, forced sign-in dialogs for * signed-in users included. * * The setting is rolled out through experimentation, and this service logs its experiment trigger: * in every arm, whenever the assigned default is in effect and offering Microsoft can matter, which * is when the background probe could start. */ export interface IChatMicrosoftSignInProbeService { readonly _serviceBrand: undefined; /** * Whether sign-in surfaces should offer "Continue with Microsoft". Can turn on while a surface is * showing, when a probe finds a linked account, so a surface that stays open should follow it. */ readonly offerMicrosoftSignIn: IObservable; /** * Call whenever a surface that could offer "Continue with Microsoft" is shown. Logs the experiment * trigger, and never waits: when Microsoft is not offered yet, it probes again in the background. */ notifySignInShown(): void; }