import { Disposable } from "../../../../../../base/common/lifecycle.js"; import { IAccessibilityService } from "../../../../../../platform/accessibility/common/accessibility.service.js"; /** * Supplies the label that a {@link ChatActivityLabelTransition} animates. */ export interface IChatActivityLabelTransitionDelegate { /** The element showing the label now. It may be replaced when the label changes. */ getElement(): HTMLElement | undefined; /** Whether the requested label names a different activity than the one shown. */ shouldAnimate(): boolean; /** Replaces the label shown with the latest requested one. */ showTarget(): void; } /** * Wipes an activity label out and the next one in, with a shimmer as it arrives. * Requests made during a wipe are coalesced so the incoming label is always the * latest one. Labels swap at once when motion is reduced. */ export declare class ChatActivityLabelTransition extends Disposable { private readonly delegate; private readonly accessibilityService; private phase; private animatedElement; private readonly animation; constructor(delegate: IChatActivityLabelTransitionDelegate, accessibilityService: IAccessibilityService); /** Shows the requested label, wiping to it when the delegate asks for animation. */ update(): void; /** Stops any wipe and shows the requested label at once. */ finish(): void; /** Stops any wipe and leaves the label that is shown. */ stop(): void; private advance; private animate; private clearAnimationClasses; }