import { IPlatformApp, IDependencies } from '../../types'; interface IDependenceRequest { capiRequest?: any; lowcodeRequest?: any; DescribeLatestCompositeGroupList?: (daata: { WeAppId: string; }) => Promise<{ Data: { List: ICompositeGroupData[]; }; }>; DescribeCompositeGroupList?: (data: { WeAppId?: string; GroupList?: { Id: string; GroupVersion: string; }[]; }, opts?: any) => Promise<{ Data: { List?: ICompositeGroupData[]; }; }>; DescribeShareCompGroups?: (data: { WeAppId: string; }) => Promise<{ Data: { List?: ICompositeGroupData[]; }; }>; DescribeCompositeContent?: (data: any) => Promise; } export declare class Dependencies { #private; constructor({ request, cals, compositeGroupId, compositeComponentId, }: { cals: { id: Required['id']; dependencies?: IPlatformApp['dependencies']; }; compositeGroupId?: string; compositeComponentId?: string; request?: IDependenceRequest; }, options?: {}); static diffDependencies(source: any, target: any, whiteList?: string[]): { diff: {}; rollbackDiff: {}; }; static normalizeDependencies(dependencies: IDependencies): IDependencies; static loadProdMaterial({ name: materialName, title, controlJsPath, controlCssPath, components: materialComponents, isComposite, justRelyOn, }: { name: string; title: string; controlJsPath: string; controlCssPath: string; components: any[]; isComposite?: boolean; justRelyOn?: boolean; }, options?: { compositeComponentId: string; }): Promise<{ lcds: any; components: any; plugins: any; actions: any; title: any; name: any; } | { components: any[]; plugins: any[]; actions: any[]; name: string; title: string; } | { materialName: string; title: string; error: any; components: any[]; }>; /** * 处理 component schema * 用于补充设计态相关字段 */ processCompnent(component: any): any; useLatestDependiencies(latestCompositeGroupList: ICompositeGroupData[]): any; onCalsDependenciesChange(dependencies: IDependencies): any; /** * 核心逻辑。获取组件物料,主要做了以下事情: * 1、加载组件库最新列表 * 2、用户组件库立刻加载 * 2、官方组件库不加载 */ init(): Promise<{ lcds: any; compLibs: any; actions: any; components: any; plugins: any; componentMethodList: Record; dependencies: any; }>; DescribeLatestCompositeGroupList({ WeAppId }: { WeAppId: any; }): Promise<{ Data: { List: ICompositeGroupData[]; }; }>; get schema(): any[]; DescribeCompositeGroupList(data: { WeAppId?: string; GroupList?: { Id: string; GroupVersion: string; }[]; }, opts?: any): Promise<{ Data: { List?: ICompositeGroupData[]; }; }>; DescribeShareCompGroups(data: { WeAppId: string; }): Promise<{ Data: { List?: ICompositeGroupData[]; }; }>; DescribeCompositeContent(data: any): Promise; } interface ICompositeGroupData { Id: string; GroupName: string; Title?: string; Describe?: string; Version?: string; Content: string; PrivateCosPrefix: string; PublicCosPrefix: string; TinyPrimeVersion: string; CreatedAt: string; ModifyTime: string; UpdatedAt: string; IsShare?: boolean; } export {}; //# sourceMappingURL=index.d.ts.map