import { IEditorOptions } from "../../../../platform/editor/common/editor.js"; import { IQuickInputService } from "../../../../platform/quickinput/common/quickInput.service.js"; import { IUntypedEditorInput } from "../../../common/editor.js"; import { IExtensionService } from "../../extensions/common/extensions.service.js"; import { IEditorGroupsService } from "../common/editorGroupsService.service.js"; import { IEditorResolverService } from "../common/editorResolverService.service.js"; export interface IOpenWithEditorPickerOptions { /** * Asks the user for a new default editor for the resource and persists the choice. */ readonly configureDefault?: boolean; } /** * Lets the user pick which of the editors registered with the {@link IEditorResolverService} * to open an editor with. */ export declare class OpenWithEditorPicker { private readonly quickInputService; private readonly editorResolverService; private readonly editorGroupsService; private readonly extensionService; private static readonly configureDefaultID; private static readonly configureDefaultDiffID; constructor(quickInputService: IQuickInputService, editorResolverService: IEditorResolverService, editorGroupsService: IEditorGroupsService, extensionService: IExtensionService); /** * Shows a picker of the editors that can open the given editor. * @returns The options to open the editor with, where `override` is the picked editor, * or `undefined` if the picker was cancelled. */ pick(editor: IUntypedEditorInput, options?: IOpenWithEditorPickerOptions): Promise; private doPick; private getEditorPicks; } /** * Internal command used by the {@link IEditorResolverService} when a resource has conflicting * default editors: asks the user for a new default editor and replaces `currentEditor` with it. */ export declare const CONFIGURE_DEFAULT_EDITOR_COMMAND_ID = "_workbench.editor.configureDefaultEditor";