import { Injector } from '@angular/core'; import { EditorHandler } from '../../interface/handler/editor-handler'; import { IdeCodeViewConfig } from '../../config/global.config'; import { EventBusHandler } from '../../event-bus/handler'; import { ShortcutKeyDesc } from '../../interface/placeholder'; interface EditorPanel { /** 对应的文件路径 */ path: string; /** 插件的路径 */ url: string; } /** * 中心编辑器组件 * @remarks * 该组件主要负责打开、显示或关闭编辑器面板,向外界屏蔽编辑器的存在 */ export declare class CenterPanelComponent implements EditorHandler { private injector; private eventBusHandler; private config?; shortcutsList: ShortcutKeyDesc[]; readonly shortcuts: ShortcutKeyDesc[]; /** 代码编辑器插件数据 */ editorPanels: EditorPanel[]; /** 当前显示的文件路径 */ activePath: string; private eventBusId; constructor(injector: Injector, // 防止依赖变更导致需要重新打包 eventBusHandler: EventBusHandler, config?: IdeCodeViewConfig); /** * 默认显示的快捷键列表 */ private getDefaultShortcuts; /** * 获取代码编辑器面板页面的Url * @param path 文件路径 * @param param 额外的查询参数 * @returns 编辑面板路径 */ private getCodeEditorPanelUrl; /** * 获取打开该文件所需的插件的地址 * @param path 文件路径 * @returns 插件地址 */ private getPluginUrl; show(path: string): boolean; open(path: string, param?: { [key: string]: string; }): boolean; close(path: string): void; } export {};