import { AnyEditorPlugin, EditorDefaultPropertiesExtHkt, EditorDefaultPropertiesExtHktPlugin, EditorRawPlugin } from '../../types'; import { editorPluginUidlStoreComponents, UidlStoreUidlElement, editorPluginUidlStore } from '../uidl-store-plugins'; import { editorPluginElementStoreFind } from './editor-plugin-element-store-find'; /** * 编辑器元素仓库是否判断插件属性扩展高等类型 */ export interface EditorPluginElementStoreIsPropertiesExtHkt { editor: { /** * 元素仓库 */ elementStore: { /** * 根元素 ID */ rootElementId: string | null; /** * 根元素 */ rootElement: UidlStoreUidlElement | null; /** * 获取元素 ID * @param elementOrId 元素或元素 ID */ getElementId(elementOrId: UidlStoreUidlElement | string): string; /** * 是根元素 * @param elementOrId 元素或元素 ID */ isRootElement(elementOrId: UidlStoreUidlElement | string): boolean; /** * 是元素类型 * @param elementOrId 元素或元素 ID * @param pkgName 包名 * @param componentType 组件类型 * @param pkgVersion 包版本,可选 */ isElementType(elementOrId: UidlStoreUidlElement | string, pkgName: string, componentType: string, pkgVersion?: string): boolean; }; }; } /** * EditorPluginElementStoreIsPropertiesExtHkt 辅助类型 */ export interface $EditorPluginElementStoreIsPropertiesExtHkt extends EditorDefaultPropertiesExtHkt { type: EditorPluginElementStoreIsPropertiesExtHkt>; } /** * 编辑器元素仓库是否判断插件 */ export declare const editorPluginElementStoreIs: EditorRawPlugin<$EditorPluginElementStoreIsPropertiesExtHkt, typeof editorPluginUidlStore | typeof editorPluginElementStoreFind | typeof editorPluginUidlStoreComponents>; //# sourceMappingURL=editor-plugin-element-store-is.d.ts.map