import { type Identity } from '@byted-apaas/cli-core-sdk'; export interface CollectComponentsOptions { componentsRoot: string; /** * loose 模式,跳过报错,只收集可识别的 apiName,重复的情况下,后者覆盖前者 */ loose?: boolean; cwd: string; namespace: string; identity: Identity; } export interface ComponentsCollection { [apiName: string]: { rootDir: string; meta: { apiName: string; }; }; } export default function collectComponents(options: CollectComponentsOptions): Promise;