import { JsonPath } from '@p-lc/shared'; import { Uidl, UidlComponent } from '@p-lc/uidl'; /** * 创建 UIDL 组件,不修改 UIDL * @param uidl UIDL * @param pkgName 包名 * @param pkgVersion 包版本 * @param componentType 组件类型 * @param importPath 导入路径,指最终 `ctx.dependencies[pkgName]` 里的路径,默认为: `[componentType]` */ export declare function createUidlComponent(uidl: U, pkgName: string, pkgVersion: string, componentType: string, importPath?: JsonPath): UidlComponent; /** * 添加 UIDL 组件,原地修改 * @param uidl UIDL * @param component 组件 * @returns 新的 UIDL */ export declare function addUidlComponent(uidl: U, component: UidlComponent): void; /** * 确保 UIDL 组件存在,原地修改 * @param uidl UIDL * @param pkgName 包名 * @param pkgVersion 包版本 * @param componentTypes 组件类型 * @param importPaths 导入路径,指最终 `ctx.dependencies[pkgName]` 里的路径,默认为: `[componentType]` * @returns 元素类型 */ export declare function ensureUidlComponents(uidl: U, pkgName: string, pkgVersion: string, componentTypes: string[], importPaths?: JsonPath[]): string[]; //# sourceMappingURL=component.d.ts.map