import { IDisposable } from "../../../../base/common/lifecycle.js"; import { IRange } from "../../../../editor/common/core/range.js"; import { Event, URI } from "../../../../sessions/sessions.web.main.internal.js"; import { IAgentEditorCommentRevealEvent, IAgentEditorComment, IAgentEditorCommentsProvider } from "@codingame/monaco-vscode-comments-service-override/vscode/vs/workbench/services/agentEditorComments/common/agentEditorComments"; export declare const IAgentEditorCommentsBridge: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; /** * Workbench-layer seam that lets the (globally registered) main-thread * extension host customer read and contribute session editor comments without * depending on the sessions layer directly. When no provider is registered * (e.g. the regular workbench window) the bridge is a no-op, so the customer * degrades gracefully. */ export interface IAgentEditorCommentsBridge { readonly _serviceBrand: undefined; /** Fired when comments change, or when a provider is registered/unregistered. */ readonly onDidChangeComments: Event; readonly onDidRevealComment: Event; /** Whether new comments can be added for the resource. `false` when no provider is registered. */ acceptsComments(resource: URI): boolean; getComments(resource: URI, includeRelated?: boolean): readonly IAgentEditorComment[]; getCommentIds(resource: URI, includeRelated?: boolean): readonly string[]; addComment(resource: URI, range: IRange, body: string): void; deleteComment(resource: URI, id: string): void; revealComment(resource: URI, id: string): void; registerProvider(provider: IAgentEditorCommentsProvider): IDisposable; }