import { Cd, Pd } from '@p-lc/pd'; import { AnyEditorPlugin, EditorDefaultPropertiesExtHkt, EditorDefaultPropertiesExtHktPlugin, EditorRawPlugin } from '../../types'; import { editorPluginLayoutStore } from '../layout-store-plugins'; import { editorPluginPdStore } from '../pd-store-plugins'; import { UidlStoreUidlElement, editorPluginUidlStore, editorPluginUidlStoreComponents } from '../uidl-store-plugins'; import { editorPluginUidlUtilsConfig } from '../uidl-utils-config-plugins'; import { editorPluginElementStoreFind } from './editor-plugin-element-store-find'; /** * 编辑器元素仓库选择插件属性扩展高等类型 */ export interface EditorPluginElementStoreSelectPropertiesExtHkt { editor: { /** * 元素仓库 */ elementStore: { /** * 选中的元素 ID */ selectedElementId: string | null; /** * 选中的元素 */ selectedElement: UidlStoreUidlElement | null; /** * 选中的元素对应的包声明 */ selectedPd: Pd | null; /** * 选中的元素对应的组件声明 */ selectedCd: Cd | null; /** * 选择元素 * @param elementId 元素 ID */ selectElement(elementId: string | null): void; }; /** * 布局仓库 */ layoutStore: { /** * UIDL 状态 */ uidlState: { /** * 选中的元素 ID */ selectedElementId?: string | null; }; }; }; } /** * EditorPluginElementStoreSelectPropertiesExtHkt 辅助类型 */ export interface $EditorPluginElementStoreSelectPropertiesExtHkt extends EditorDefaultPropertiesExtHkt { type: EditorPluginElementStoreSelectPropertiesExtHkt>; } /** * 编辑器元素仓库选择插件 */ export declare const editorPluginElementStoreSelect: EditorRawPlugin<$EditorPluginElementStoreSelectPropertiesExtHkt, typeof editorPluginUidlUtilsConfig | typeof editorPluginLayoutStore | typeof editorPluginElementStoreFind | typeof editorPluginUidlStore | typeof editorPluginPdStore | typeof editorPluginUidlStoreComponents>; //# sourceMappingURL=editor-plugin-element-store-select.d.ts.map