import { Event } from "../../../base/common/event.js"; import { IDisposable } from "../../../base/common/lifecycle.js"; import { IObservable } from "../../../base/common/observable.js"; import { URI } from "../../../base/common/uri.js"; import { IDataChannelService } from "./dataChannel.service.js"; export interface CoreDataChannel { sendData(data: T): void; } export interface IDataChannelEvent { channelId: string; data: T; } export type LinkPresentationKind = "resource" | "issue" | "pullRequest" | "commit" | "file" | "folder" | "session" | "chat" | "repository" | "branch"; export type LinkPresentationStatusKind = "neutral" | "pending" | "success" | "warning" | "error" | "open" | "closed" | "merged" | "draft" | "notPlanned"; export interface ILinkPresentationStatus { readonly kind: LinkPresentationStatusKind; readonly label: string; } export interface ILinkPresentation { readonly kind: LinkPresentationKind; readonly title?: string; readonly detail?: string; readonly reference?: string; readonly status?: ILinkPresentationStatus; readonly secondaryStatus?: ILinkPresentationStatus; readonly changes?: { readonly insertions: number; readonly deletions: number; }; readonly tooltip?: string; readonly ariaLabel?: string; readonly isLoading?: boolean; } export declare function parseLinkPresentation(value: unknown): ILinkPresentation; export interface ILinkPresentationWatcher extends IDisposable { readonly presentation: IObservable; } export interface ILinkPresentationProvider { createLinkPresentationWatcher(resource: URI): ILinkPresentationWatcher; } export interface ILinkPresentationProviderRegistration { readonly id: string; readonly uriPattern: RegExp; readonly kind: LinkPresentationKind; readonly enablement?: string; } export interface ILinkPresentationRule { readonly id: string; readonly uriPattern: RegExp; readonly kind: LinkPresentationKind; } export declare class NullDataChannelService implements IDataChannelService { _serviceBrand: undefined; get onDidSendData(): Event>; getDataChannel(_channelId: string): CoreDataChannel; }