import { Disposable } from "../../base/common/lifecycle.js"; import { IObservable } from "../../base/common/observable.js"; import { IAccessibilityService } from "../../platform/accessibility/common/accessibility.service.js"; export interface IAnimatedCounterWidgetOptions { readonly prefix?: string; readonly cssClassName?: string; /** * The direction of the animation when the count * increases. The direction will be the opposite * when the count decreases. * */ readonly direction?: "topToBottom" | "bottomToTop"; readonly duration?: number; readonly count: IObservable; } /** * A small widget that renders a number and animates transitions between values: * the container width tweens as the number of digits changes and the outgoing / * incoming digits slide in the configured direction. Respects reduced motion. */ export declare class AnimatedCounterWidget extends Disposable { private readonly _options; private readonly _accessibilityService; private _element; private _count; private _hasRendered; private readonly _animationOptions; private readonly _updateThrottler; constructor(container: HTMLElement, _options: IAnimatedCounterWidgetOptions, _accessibilityService: IAccessibilityService); private _update; }