import * as dom from "../../../../base/browser/dom.js"; import { Disposable } from "../../../../base/common/lifecycle.js"; import { URI } from "../../../../base/common/uri.js"; import * as languages from "../../../../editor/common/languages.js"; import { IMarkdownRendererExtraOptions } from "../../../../platform/markdown/browser/markdownRenderer.js"; import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js"; import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js"; import { ICommentService } from "./commentService.service.js"; import { ICommentThreadWidget } from "../common/commentThreadWidget.js"; import { IRange } from "../../../../editor/common/core/range.js"; import { ICellRange } from "../../notebook/common/notebookRange.js"; import { FontInfo } from "../../../../editor/common/config/fontInfo.js"; import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js"; import { IKeybindingService } from "../../../../platform/keybinding/common/keybinding.service.js"; import { LayoutableEditor } from "./simpleCommentEditor.js"; export declare const COMMENTEDITOR_DECORATION_KEY = "commenteditordecoration"; export declare class CommentThreadWidget extends Disposable implements ICommentThreadWidget { readonly container: HTMLElement; readonly _parentEditor: LayoutableEditor; private _owner; private _parentResourceUri; private _contextKeyService; private _scopedInstantiationService; private _commentThread; private _pendingComment; private _pendingEdits; private _markdownOptions; private _commentOptions; private _containerDelegate; private readonly commentService; private readonly configurationService; private readonly _keybindingService; private _header; private _body; private _commentReply?; private _additionalActions?; private _commentMenus; private _commentThreadDisposables; private _threadIsEmpty; private _commentThreadContextValue; private _focusedContextKey; private _onDidResize; onDidResize: import("../../../../base/common/event.js").Event; private _commentThreadState; get commentThread(): languages.CommentThread; constructor(container: HTMLElement, _parentEditor: LayoutableEditor, _owner: string, _parentResourceUri: URI, _contextKeyService: IContextKeyService, _scopedInstantiationService: IInstantiationService, _commentThread: languages.CommentThread, _pendingComment: languages.PendingComment | undefined, _pendingEdits: { [key: number]: languages.PendingComment; } | undefined, _markdownOptions: IMarkdownRendererExtraOptions, _commentOptions: languages.CommentOptions | undefined, _containerDelegate: { actionRunner: (() => void) | null; collapse: () => Promise; }, commentService: ICommentService, configurationService: IConfigurationService, _keybindingService: IKeybindingService); get hasUnsubmittedComments(): boolean; private _setAriaLabel; private updateCurrentThread; private currentThreadListeners; updateCommentThread(commentThread: languages.CommentThread): Promise; display(lineHeight: number, focus: boolean): Promise; private _refresh; dispose(): void; private _bindCommentThreadListeners; private _createCommentForm; private _createAdditionalActions; getCommentCoords(commentUniqueId: number): { thread: dom.IDomNodePagePosition; comment: dom.IDomNodePagePosition; } | undefined; getPendingEdits(): { [key: number]: languages.PendingComment; }; getPendingComment(): languages.PendingComment | undefined; setPendingComment(pending: languages.PendingComment): void; getDimensions(): dom.Dimension; layout(widthInPixel?: number): void; ensureFocusIntoNewEditingComment(): void; focusCommentEditor(): void; focus(commentUniqueId: number | undefined): void; submitComment(): Promise; collapse(): Promise; applyTheme(fontInfo: FontInfo): void; }