import { StatusBarAlignment as ExtHostStatusBarAlignment, Disposable, ThemeColor } from "./extHostTypes.js"; import type * as vscode from "vscode"; import { MainThreadStatusBarShape, IMainContext, ExtHostStatusBarShape, StatusBarItemDto } from "./extHost.protocol.js"; import { CommandsConverter } from "./extHostCommands.js"; import { IExtensionDescription } from "../../../platform/extensions/common/extensions.js"; import * as htmlContent from "../../../base/common/htmlContent.js"; export declare class ExtHostStatusBarEntry implements vscode.StatusBarItem { #private; private _onDispose?; private static ID_GEN; private static ALLOWED_BACKGROUND_COLORS; private readonly _entryId; private _extension?; private _id?; private _alignment; private _priority?; private _disposed; private _visible?; private _text; private _tooltip?; private _tooltip2?; private _name?; private _color?; private _backgroundColor?; private _latestCommandRegistration?; private readonly _staleCommandRegistrations; private _command?; private _timeoutHandle; private _accessibilityInformation?; constructor(proxy: MainThreadStatusBarShape, commands: CommandsConverter, staticItems: ReadonlyMap, extension: IExtensionDescription, id?: string, alignment?: ExtHostStatusBarAlignment, priority?: number, _onDispose?: () => void); constructor(proxy: MainThreadStatusBarShape, commands: CommandsConverter, staticItems: ReadonlyMap, extension: IExtensionDescription | undefined, id: string, alignment?: ExtHostStatusBarAlignment, priority?: number, _onDispose?: () => void); private validatePriority; get id(): string; get entryId(): string; get alignment(): vscode.StatusBarAlignment; get priority(): number | undefined; get text(): string; get name(): string | undefined; get tooltip(): vscode.MarkdownString | string | undefined; get tooltip2(): vscode.MarkdownString | string | undefined | ((token: vscode.CancellationToken) => Promise); get color(): string | ThemeColor | undefined; get backgroundColor(): ThemeColor | undefined; get command(): string | vscode.Command | undefined; get accessibilityInformation(): vscode.AccessibilityInformation | undefined; set text(text: string); set name(name: string | undefined); set tooltip(tooltip: vscode.MarkdownString | string | undefined); set tooltip2(tooltip: vscode.MarkdownString | string | undefined | ((token: vscode.CancellationToken) => Promise)); set color(color: string | ThemeColor | undefined); set backgroundColor(color: ThemeColor | undefined); set command(command: string | vscode.Command | undefined); set accessibilityInformation(accessibilityInformation: vscode.AccessibilityInformation | undefined); show(): void; hide(): void; private update; dispose(): void; } export declare class ExtHostStatusBar implements ExtHostStatusBarShape { private readonly _proxy; private readonly _commands; private readonly _statusMessage; private readonly _entries; private readonly _existingItems; constructor(mainContext: IMainContext, commands: CommandsConverter); $acceptStaticEntries(added: StatusBarItemDto[]): void; $provideTooltip(entryId: string, cancellation: vscode.CancellationToken): Promise; createStatusBarEntry(extension: IExtensionDescription | undefined, id: string, alignment?: ExtHostStatusBarAlignment, priority?: number): vscode.StatusBarItem; createStatusBarEntry(extension: IExtensionDescription, id?: string, alignment?: ExtHostStatusBarAlignment, priority?: number): vscode.StatusBarItem; setStatusBarMessage(text: string, timeoutOrThenable?: number | Thenable): Disposable; }