import { AnyMoboPlugin, InitOptionsByMoboPlugin, Mobo, MoboDefaultPropertiesExtHkt, MoboDefaultPropertiesExtObj, MoboPlugin, MoboPluginInitFn } from '@mobo-ts/mobo'; import { LiteralObject } from '@p-lc/shared'; import { editorExtKeys } from './constants'; import { editorDefaultPlugins } from './plugins'; /** * 编辑器扩展键值 */ export type EditorExtKey = (typeof editorExtKeys)[number]; /** * 所有扩展键值 */ export type AllExtKey = EditorExtKey; /** * 编辑器 */ export type Editor = Mobo; /** * 编辑器初始化选项 */ export type EditorInitOptions = InitOptionsByMoboPlugin; /** * 编辑器默认属性扩展,对象形式 */ export type EditorDefaultPropertiesExtObj = MoboDefaultPropertiesExtObj; /** * 编辑器默认属性扩展,高等类型形式 */ export type EditorDefaultPropertiesExtHkt = MoboDefaultPropertiesExtHkt; export type { MoboDefaultPropertiesExtHktPlugin as EditorDefaultPropertiesExtHktPlugin } from '@mobo-ts/mobo'; /** * 编辑器默认属性扩展 */ export type EditorDefaultPropertiesExt = EditorDefaultPropertiesExtObj | EditorDefaultPropertiesExtHkt; /** * 编辑器原始插件 */ export interface EditorRawPlugin extends MoboPlugin { /** * 初始化编辑器 */ initEditor?: MoboPluginInitFn>; } /** * 任意编辑器插件 */ export type AnyEditorPlugin = AnyMoboPlugin; /** * 编辑器插件的依赖插件 */ export type DepPluginOfEditorPlugin = Plugin extends EditorRawPlugin ? DepPlugin : never; /** * 编辑器插件联合依赖插件 */ export type DepPluginUniteEditorPlugin = Plugin | DepPluginOfEditorPlugin; /** * 编辑器插件 */ export type EditorPlugin = EditorRawPlugin; /** * 编辑器默认插件 */ export type EditorDefaultPlugin = (typeof editorDefaultPlugins)[number]; /** * 默认编辑器 */ export type DefaultEditor = Editor; /** * 任意编辑器 */ export type AnyEditor = Editor; export type { PluginOfMoboContext as PluginOfEditor } from '@mobo-ts/mobo'; export type { InitOptionsOfMoboContext as InitOptionsOfEditor } from '@mobo-ts/mobo'; //# sourceMappingURL=types.d.ts.map