import { CancellationToken } from "../../../../base/common/cancellation.js"; import { IDisposable } from "../../../../base/common/lifecycle.js"; import { URI } from "../../../../sessions/sessions.web.main.internal.js"; import { IExternalOpenerProvider, IExternalUriOpener, ILinkHandler } from "./externalUriOpenerService.js"; export declare const IExternalUriOpenerService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier; export interface IExternalUriOpenerService { readonly _serviceBrand: undefined; /** * Registers a provider for external resources openers. */ registerExternalOpenerProvider(provider: IExternalOpenerProvider): IDisposable; /** * Get the configured IExternalUriOpener for the uri. * If there is no opener configured, then returns the best opener that can handle the uri. */ getOpener(uri: URI, ctx: { sourceUri: URI; }, token: CancellationToken): Promise; /** * Returns the ways to open a link, so that the user can choose one: the openers that can open * it and the editor's default opener. The one that opening the link without choosing uses comes * first; there is none if opening it prompts. Returns no handlers for links that no opener supports. * * @param href The link as written. */ getLinkHandlers(href: string, token: CancellationToken): Promise; }