import { Disposable } from "../../../../base/common/lifecycle.js"; import { URI } from "../../../../base/common/uri.js"; import { ICommandService } from "../../../../platform/commands/common/commands.service.js"; import { ILogService } from "../../../../platform/log/common/log.service.js"; import { INotificationService } from "../../../../platform/notification/common/notification.service.js"; import { IOnboardingTryoutService } from "../../onboarding/common/onboardingTryout.service.js"; import { IWebview } from "../../webview/browser/webview.js"; interface IReleaseNotesTryoutState { readonly id: string; readonly index: number; readonly kind: "ready" | "hidden" | "unavailable"; readonly label: string; readonly ariaLabel: string; readonly href: string; readonly message: string; readonly setupLabel: string; readonly setupAriaLabel: string; } interface IReleaseNotesTryoutRequest { readonly type: "releaseNotesTryout"; readonly documentId: string; readonly id: string; readonly index: number; readonly action: "run" | "setup"; } type ReleaseNotesTryoutMessage = IReleaseNotesTryoutRequest | { readonly type: "releaseNotesTryoutsReady"; readonly documentId: string; }; /** * Owns the locally resolved links and interactions for one release notes document. */ export declare class ReleaseNotesTryouts extends Disposable { private readonly _tryoutService; private readonly _commandService; private readonly _notificationService; private readonly _logService; readonly documentId: string; private readonly _states; private readonly _links; private readonly _interaction; private readonly _availabilityListener; private _interactionTarget; private _webview; private _canRestoreFocus; private _ready; constructor(_tryoutService: IOnboardingTryoutService, _commandService: ICommandService, _notificationService: INotificationService, _logService: ILogService); renderCodeSpan(escapedText: string): string | undefined; needsRender(content: TrustedHTML): boolean; render(container: HTMLElement): void; private replaceInvalidLink; private getState; attach(webview: IWebview, canRestoreFocus: () => boolean): void; private getAvailability; private onMessage; openLink(uri: URI): Promise; private interact; private restoreFocus; private update; getScript(): string; dispose(): void; } declare function applyReleaseNotesTryoutState(element: HTMLElement, state: IReleaseNotesTryoutState): void; export declare function initializeReleaseNotesTryouts(targetDocument: Document, documentId: string, vscode: { postMessage(message: ReleaseNotesTryoutMessage): void; }, applyState?: typeof applyReleaseNotesTryoutState): () => void; export {};