import type * as vscode from "vscode"; import { UriComponents } from "../../../base/common/uri.js"; import { ExtHostTimelineShape, IMainContext } from "./extHost.protocol.js"; import { Timeline, TimelineOptions } from "../../contrib/timeline/common/timeline.js"; import { IDisposable } from "../../../base/common/lifecycle.js"; import { CommandsConverter, ExtHostCommands } from "./extHostCommands.js"; import { ExtensionIdentifier } from "../../../platform/extensions/common/extensions.js"; export interface IExtHostTimeline extends ExtHostTimelineShape { readonly _serviceBrand: undefined; $getTimeline(id: string, uri: UriComponents | undefined, options: TimelineOptions, token: vscode.CancellationToken): Promise; } export declare const IExtHostTimeline: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export declare class ExtHostTimeline implements IExtHostTimeline { readonly _serviceBrand: undefined; private _proxy; private readonly _providers; private readonly _workspaceProviders; constructor(mainContext: IMainContext, commands: ExtHostCommands); $getTimeline(id: string, uri: UriComponents | undefined, options: TimelineOptions, token: vscode.CancellationToken): Promise; registerTimelineProvider(id: string, label: string, scheme: string | readonly string[], provider: vscode.TimelineProvider, extension: ExtensionIdentifier, commandConverter: CommandsConverter): IDisposable; registerWorkspaceTimelineProvider(id: string, label: string, provider: vscode.WorkspaceTimelineProvider, extension: ExtensionIdentifier, commandConverter: CommandsConverter): IDisposable; /** * Ids must be unique per kind of provider, and a timeline and a workspace timeline provider may only share an id when they come from the same extension. */ private _checkId; private _resolveItem; }