import * as _mijalowcode_types from '@mijalowcode/types'; import { ComponentMeta, PagePlatform } from '@mijalowcode/types'; import { ComponentType, ReactNode, CSSProperties } from 'react'; export { L as LoadMaterialModulesOptions, a as LoadedMaterialModules, M as MaterialLoadOptions, b as MaterialManifest, c as MaterialManifestEntry, d as MaterialRuntimeModule, e as clearMaterialLoadCache, f as columnsRequestAdapter, g as defaultComponentAdapterRegistry, l as listTemplateAdapter, h as loadMaterialModules, w as materialManifest } from './material-manifest-V9dpXZ71.js'; import * as react_jsx_runtime from 'react/jsx-runtime'; /** * 组件映射表: componentName → React 组件 */ declare const componentMap: Record>; /** * 获取组件 */ declare function getComponent(componentName: string): ComponentType | null; /** * 注册自定义组件 */ declare function registerComponent(componentName: string, component: ComponentType): void; /** * 组件元数据映射表: componentName → ComponentMeta */ declare const componentMetaMap: Record; /** * 获取组件元数据 */ declare function getComponentMeta(componentName: string): ComponentMeta | null; /** * 获取所有组件元数据列表 */ declare function getAllComponentMetas(): ComponentMeta[]; /** * 注册自定义组件元数据 */ declare function registerComponentMeta(meta: ComponentMeta): void; declare function getH5ComponentMeta(componentName: string): ComponentMeta | null; declare function getAllH5ComponentMetas(): ComponentMeta[]; type SlotArea = { name: string; label?: string; accept?: string[]; multiple?: boolean; fallback?: ReactNode | ((context?: Record) => ReactNode | null | undefined); }; type SlotRender = (slotName: string, payload?: Record) => ReactNode; type ResolveSlotOptions = { renderSlot?: SlotRender; areaMap?: Record; areas?: SlotArea[]; context?: Record; }; type UseSlotRuntimeOptions = { renderSlot?: SlotRender; children?: ReactNode; areas?: SlotArea[]; context?: Record; }; declare function collectSlotChildren(children?: ReactNode): Record; declare function resolveSlot(areaName: string, { renderSlot, areaMap, areas, context }: ResolveSlotOptions): ReactNode[] | undefined; declare function renderSlotArea(areaName: string, options: ResolveSlotOptions): ReactNode | null; declare function useSlotRuntime({ renderSlot, children, areas, context, }: UseSlotRuntimeOptions): { getAreaNodes: (areaName: string, payload?: Record) => ReactNode[] | undefined; hasArea: (areaName: string, payload?: Record) => boolean; renderSlotArea: (areaName: string, payload?: Record) => ReactNode; areaMap: Record; }; type EventEmitter = (eventName: string, payload: Record | boolean) => T | Promise | void; declare function useEventEmitter(onEvent?: EventEmitter): (eventName: string, payload: Record | boolean) => Promise; type FlexConfig = { columnGap?: number; rowGap?: number; }; type ListWrapperProps = { layoutMode?: "grid" | "flex"; flex?: FlexConfig; grid?: Record; className?: string; style?: CSSProperties; [key: string]: unknown; }; declare function ListWrapper(props: ListWrapperProps): react_jsx_runtime.JSX.Element; declare function getComponentMetaByPlatform(componentName: string, platform: PagePlatform): _mijalowcode_types.ComponentMeta | null; declare function getAllComponentMetasByPlatform(platform: PagePlatform): _mijalowcode_types.ComponentMeta[]; export { type EventEmitter, ListWrapper, type SlotArea, collectSlotChildren, componentMap, componentMetaMap, getAllComponentMetas, getAllComponentMetasByPlatform, getAllH5ComponentMetas, getComponent, getComponentMeta, getComponentMetaByPlatform, getH5ComponentMeta, registerComponent, registerComponentMeta, renderSlotArea, resolveSlot, useEventEmitter, useSlotRuntime };